qresource.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/io/qresource.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10class QStringSplitter-
11{-
12public:-
13 QStringSplitter(const QString &s)-
14 : m_string(s), m_data(m_string.constData()), m_len(s.length()), m_pos(0)-
15 {-
16 m_splitChar = QLatin1Char('/');-
17 }
executed 150915 times by 112 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
150915
18-
19 inline bool hasNext() {-
20 while (m_pos < m_len
m_pos < m_lenDescription
TRUEevaluated 953577 times by 112 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
FALSEevaluated 73060 times by 84 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
&& m_data[m_pos] == m_splitChar
m_data[m_pos] == m_splitCharDescription
TRUEevaluated 368164 times by 112 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
FALSEevaluated 585413 times by 112 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
)
73060-953577
21 ++
executed 368164 times by 112 tests: ++m_pos;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
m_pos;
executed 368164 times by 112 tests: ++m_pos;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
368164
22 return
executed 658473 times by 112 tests: return m_pos < m_len;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
m_pos < m_len;
executed 658473 times by 112 tests: return m_pos < m_len;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
658473
23 }-
24-
25 inline QStringRef next() {-
26 int start = m_pos;-
27 while (m_pos < m_len
m_pos < m_lenDescription
TRUEevaluated 3961329 times by 112 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
FALSEevaluated 43130 times by 90 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • ...
&& m_data[m_pos] != m_splitChar
m_data[m_pos] != m_splitCharDescription
TRUEevaluated 3636295 times by 112 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
FALSEevaluated 325034 times by 105 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
)
43130-3961329
28 ++
executed 3636295 times by 112 tests: ++m_pos;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
m_pos;
executed 3636295 times by 112 tests: ++m_pos;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
3636295
29 return
executed 368164 times by 112 tests: return QStringRef(&m_string, start, m_pos - start);
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
QStringRef(&m_string, start, m_pos - start);
executed 368164 times by 112 tests: return QStringRef(&m_string, start, m_pos - start);
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
368164
30 }-
31-
32 QString m_string;-
33 const QChar *m_data;-
34 QChar m_splitChar;-
35 int m_len;-
36 int m_pos;-
37};-
38-
39-
40-
41class QResourceRoot-
42{-
43 enum Flags-
44 {-
45 Compressed = 0x01,-
46 Directory = 0x02-
47 };-
48 const uchar *tree, *names, *payloads;-
49 inline int findOffset(int node) const { return
executed 1574670 times by 112 tests: return node * 14;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
node * 14;
executed 1574670 times by 112 tests: return node * 14;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
}
1574670
50 uint hash(int node) const;-
51 QString name(int node) const;-
52 short flags(int node) const;-
53public:-
54 mutable QAtomicInt ref;-
55-
56 inline QResourceRoot(): tree(0), names(0), payloads(0) {}
executed 16 times by 2 tests: end of block
Executed by:
  • tst_QResourceEngine
  • tst_rcc
16
57 inline QResourceRoot(const uchar *t, const uchar *n, const uchar *d) { setSource(t, n, d); }
executed 2579 times by 196 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • ...
2579
58 virtual ~QResourceRoot() { }-
59 int findNode(const QString &path, const QLocale &locale=QLocale()) const;-
60 inline bool isContainer(int node) const { return
executed 37103 times by 84 tests: return flags(node) & Directory;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
flags(node) & Directory;
executed 37103 times by 84 tests: return flags(node) & Directory;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
}
37103
61 inline bool isCompressed(int node) const { return
executed 36149 times by 84 tests: return flags(node) & Compressed;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
flags(node) & Compressed;
executed 36149 times by 84 tests: return flags(node) & Compressed;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
}
36149
62 const uchar *data(int node, qint64 *size) const;-
63 QStringList children(int node) const;-
64 virtual QString mappingRoot() const { return
executed 262587 times by 112 tests: return QString();
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
QString();
executed 262587 times by 112 tests: return QString();
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
}
262587
65 bool mappingRootSubdir(const QString &path, QString *match=0) const;-
66 inline bool operator==(const QResourceRoot &other) const-
67 { return
executed 1395 times by 185 tests: return tree == other.tree && names == other.names && payloads == other.payloads;
Executed by:
  • tst_QApplication
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • ...
tree == other.tree
tree == other.treeDescription
TRUEevaluated 539 times by 185 tests
Evaluated by:
  • tst_QApplication
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • ...
FALSEevaluated 856 times by 183 tests
Evaluated by:
  • tst_QApplication
  • tst_QPrinter
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • ...
&& names == other.names
names == other.namesDescription
TRUEevaluated 539 times by 185 tests
Evaluated by:
  • tst_QApplication
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • ...
FALSEnever evaluated
&& payloads == other.payloads
payloads == other.payloadsDescription
TRUEevaluated 539 times by 185 tests
Evaluated by:
  • tst_QApplication
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • ...
FALSEnever evaluated
;
executed 1395 times by 185 tests: return tree == other.tree && names == other.names && payloads == other.payloads;
Executed by:
  • tst_QApplication
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • ...
}
0-1395
68 inline bool operator!=(const QResourceRoot &other) const-
69 { return
never executed: return !operator==(other);
!operator==(other);
never executed: return !operator==(other);
}
0
70 enum ResourceRootType { Resource_Builtin, Resource_File, Resource_Buffer };-
71 virtual ResourceRootType type() const { return
executed 20 times by 2 tests: return Resource_Builtin;
Executed by:
  • tst_QResourceEngine
  • tst_rcc
Resource_Builtin;
executed 20 times by 2 tests: return Resource_Builtin;
Executed by:
  • tst_QResourceEngine
  • tst_rcc
}
20
72-
73protected:-
74 inline void setSource(const uchar *t, const uchar *n, const uchar *d) {-
75 tree = t;-
76 names = n;-
77 payloads = d;-
78 }
executed 2595 times by 198 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_QResourceEngine
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • ...
2595
79};-
80-
81static QString cleanPath(const QString &_path)-
82{-
83 QString path = QDir::cleanPath(_path);-
84-
85-
86 if (path.startsWith(QLatin1String("//"))
path.startsWit...1String("//"))Description
TRUEnever evaluated
FALSEevaluated 50384 times by 112 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
)
0-50384
87 path.remove(0, 1);
never executed: path.remove(0, 1);
0
88 return
executed 50384 times by 112 tests: return path;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
path;
executed 50384 times by 112 tests: return path;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
50384
89}-
90-
91template<> class QTypeInfo<QResourceRoot > { 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(QResourceRoot)>sizeof(void*)), isPointer = false, isIntegral = QtPrivate::is_integral< QResourceRoot >::value, isDummy = (((Q_MOVABLE_TYPE) & Q_DUMMY_TYPE) != 0), sizeOf = sizeof(QResourceRoot) }; static inline const char *name() { return "QResourceRoot"; } };-
92-
93namespace { namespace Q_QGS_resourceMutex { typedef QMutex Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized
guard.load() =...c::InitializedDescription
TRUEnever evaluated
FALSEnever evaluated
) guard.store(QtGlobalStatic::Destroyed);
never executed: guard.store(QtGlobalStatic::Destroyed);
}
never executed: end of block
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type (QMutex::Recursive))) : value (QMutex::Recursive) { guard.store(QtGlobalStatic::Initialized); } } holder; return
executed 51890 times by 294 tests: return &holder.value;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
&holder.value;
executed 51890 times by 294 tests: return &holder.value;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
} } } static QGlobalStatic<QMutex, Q_QGS_resourceMutex::innerFunction, Q_QGS_resourceMutex::guard> resourceMutex;
0-51890
94-
95typedef QList<QResourceRoot*> ResourceList;-
96namespace { namespace Q_QGS_resourceList { typedef ResourceList Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized
guard.load() =...c::InitializedDescription
TRUEnever evaluated
FALSEnever evaluated
) guard.store(QtGlobalStatic::Destroyed);
never executed: guard.store(QtGlobalStatic::Destroyed);
}
never executed: end of block
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; return
executed 57362 times by 294 tests: return &holder.value;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
&holder.value;
executed 57362 times by 294 tests: return &holder.value;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
} } } static QGlobalStatic<ResourceList, Q_QGS_resourceList::innerFunction, Q_QGS_resourceList::guard> resourceList;
0-57362
97-
98namespace { namespace Q_QGS_resourceSearchPaths { typedef QStringList Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized
guard.load() =...c::InitializedDescription
TRUEevaluated 5 times by 5 tests
Evaluated by:
  • tst_qimagereader - unknown status
  • tst_qmovie - unknown status
  • tst_qresourceengine - unknown status
  • tst_qwidget - unknown status
  • tst_qwidget_window - unknown status
FALSEnever evaluated
) guard.store(QtGlobalStatic::Destroyed);
executed 5 times by 5 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_qimagereader - unknown status
  • tst_qmovie - unknown status
  • tst_qresourceengine - unknown status
  • tst_qwidget - unknown status
  • tst_qwidget_window - unknown status
}
executed 5 times by 5 tests: end of block
Executed by:
  • tst_qimagereader - unknown status
  • tst_qmovie - unknown status
  • tst_qresourceengine - unknown status
  • tst_qwidget - unknown status
  • tst_qwidget_window - unknown status
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; return
executed 88 times by 5 tests: return &holder.value;
Executed by:
  • tst_QImageReader
  • tst_QMovie
  • tst_QResourceEngine
  • tst_QWidget
  • tst_QWidget_window
&holder.value;
executed 88 times by 5 tests: return &holder.value;
Executed by:
  • tst_QImageReader
  • tst_QMovie
  • tst_QResourceEngine
  • tst_QWidget
  • tst_QWidget_window
} } } static QGlobalStatic<QStringList, Q_QGS_resourceSearchPaths::innerFunction, Q_QGS_resourceSearchPaths::guard> resourceSearchPaths;
0-88
99class QResourcePrivate {-
100public:-
101 inline QResourcePrivate(QResource *_q) : q_ptr(_q) { clear(); }
executed 44852 times by 112 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
44852
102 inline ~QResourcePrivate() { clear(); }
executed 44852 times by 113 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
44852
103-
104 void ensureInitialized() const;-
105 void ensureChildren() const;-
106-
107 bool load(const QString &file);-
108 void clear();-
109-
110 QLocale locale;-
111 QString fileName, absoluteFilePath;-
112 QList<QResourceRoot*> related;-
113 uint container : 1;-
114 mutable uint compressed : 1;-
115 mutable qint64 size;-
116 mutable const uchar *data;-
117 mutable QStringList children;-
118-
119 QResource *q_ptr;-
120 inline QResource* q_func() { return static_cast<QResource *>(q_ptr); } inline const QResource* q_func() const { return static_cast<const QResource *>(q_ptr); } friend class QResource;-
121};-
122-
123void-
124QResourcePrivate::clear()-
125{-
126 absoluteFilePath.clear();-
127 compressed = 0;-
128 data = 0;-
129 size = 0;-
130 children.clear();-
131 container = 0;-
132 for(int i = 0; i < related.size()
i < related.size()Description
TRUEevaluated 37103 times by 85 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
FALSEevaluated 134554 times by 113 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
; ++i) {
37103-134554
133 QResourceRoot *root = related.at(i);-
134 if(!root->ref.deref()
!root->ref.deref()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QResourceEngine
FALSEevaluated 37102 times by 85 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
)
1-37102
135 delete root;
executed 1 time by 1 test: delete root;
Executed by:
  • tst_QResourceEngine
1
136 }
executed 37103 times by 85 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
37103
137 related.clear();-
138}
executed 134554 times by 113 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
134554
139-
140bool-
141QResourcePrivate::load(const QString &file)-
142{-
143 related.clear();-
144 QMutexLocker lock(resourceMutex());-
145 const ResourceList *list = resourceList();-
146 QString cleaned = cleanPath(file);-
147 for(int i = 0; i < list->size()
i < list->size()Description
TRUEevaluated 150852 times by 112 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
FALSEevaluated 50211 times by 112 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
; ++i) {
50211-150852
148 QResourceRoot *res = list->at(i);-
149 const int node = res->findNode(cleaned, locale);-
150 if(node != -1
node != -1Description
TRUEevaluated 37103 times by 84 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
FALSEevaluated 113749 times by 112 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
) {
37103-113749
151 if(related.isEmpty()
related.isEmpty()Description
TRUEevaluated 36894 times by 84 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
FALSEevaluated 209 times by 5 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_QResourceEngine
) {
209-36894
152 container = res->isContainer(node);-
153 if(!container
!containerDescription
TRUEevaluated 36149 times by 84 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
FALSEevaluated 745 times by 8 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QIcon
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
) {
745-36149
154 data = res->data(node, &size);-
155 compressed = res->isCompressed(node);-
156 }
executed 36149 times by 84 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
else {
36149
157 data = 0;-
158 size = 0;-
159 compressed = 0;-
160 }
executed 745 times by 8 tests: end of block
Executed by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QIcon
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
745
161 } else if(res->isContainer(node) != container
res->isContain...) != containerDescription
TRUEnever evaluated
FALSEevaluated 209 times by 5 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QMimeDatabase
  • tst_QResourceEngine
) {
0-209
162 QMessageLogger(__FILE__, 272, __PRETTY_FUNCTION__).warning("QResourceInfo: Resource [%s] has both data and children!", file.toLatin1().constData());-
163 }
never executed: end of block
0
164 res->ref.ref();-
165 related.append(res);-
166 }
executed 37103 times by 84 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
else if(res->mappingRootSubdir(file)
res->mappingRootSubdir(file)Description
TRUEnever evaluated
FALSEevaluated 113749 times by 112 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
) {
0-113749
167 container = true;-
168 data = 0;-
169 size = 0;-
170 compressed = 0;-
171 res->ref.ref();-
172 related.append(res);-
173 }
never executed: end of block
0
174 }
executed 150852 times by 112 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
150852
175 return
executed 50211 times by 112 tests: return !related.isEmpty();
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
!related.isEmpty();
executed 50211 times by 112 tests: return !related.isEmpty();
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
50211
176}-
177-
178void-
179QResourcePrivate::ensureInitialized() const-
180{-
181 if(!related.isEmpty()
!related.isEmpty()Description
TRUEevaluated 387642 times by 84 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
FALSEevaluated 50207 times by 112 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
)
50207-387642
182 return;
executed 387642 times by 84 tests: return;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
387642
183 QResourcePrivate *that = const_cast<QResourcePrivate *>(this);-
184 if(fileName == QLatin1String(":")
fileName == QLatin1String(":")Description
TRUEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QDir
  • tst_QResourceEngine
FALSEevaluated 50196 times by 112 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
)
11-50196
185 that->fileName += QLatin1Char('/');
executed 11 times by 2 tests: that->fileName += QLatin1Char('/');
Executed by:
  • tst_QDir
  • tst_QResourceEngine
11
186 that->absoluteFilePath = fileName;-
187 if(!that->absoluteFilePath.startsWith(QLatin1Char(':'))
!that->absolut...tin1Char(':'))Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QResourceEngine
FALSEevaluated 50205 times by 112 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
)
2-50205
188 that->absoluteFilePath.prepend(QLatin1Char(':'));
executed 2 times by 1 test: that->absoluteFilePath.prepend(QLatin1Char(':'));
Executed by:
  • tst_QResourceEngine
2
189-
190 QString path = fileName;-
191 if(path.startsWith(QLatin1Char(':'))
path.startsWit...tin1Char(':'))Description
TRUEevaluated 50205 times by 112 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QResourceEngine
)
2-50205
192 path = path.mid(1);
executed 50205 times by 112 tests: path = path.mid(1);
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
50205
193-
194 if(path.startsWith(QLatin1Char('/'))
path.startsWit...tin1Char('/'))Description
TRUEevaluated 50121 times by 110 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
FALSEevaluated 86 times by 5 tests
Evaluated by:
  • tst_QImageReader
  • tst_QMovie
  • tst_QResourceEngine
  • tst_QWidget
  • tst_QWidget_window
) {
86-50121
195 that->load(path);-
196 }
executed 50121 times by 110 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
else {
50121
197 QMutexLocker lock(resourceMutex());-
198 QStringList searchPaths = *resourceSearchPaths();-
199 searchPaths << QLatin1String("");-
200 for(int i = 0; i < searchPaths.size()
i < searchPaths.size()Description
TRUEevaluated 90 times by 5 tests
Evaluated by:
  • tst_QImageReader
  • tst_QMovie
  • tst_QResourceEngine
  • tst_QWidget
  • tst_QWidget_window
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QWidget_window
; ++i) {
4-90
201 const QString searchPath(searchPaths.at(i) + QLatin1Char('/') + path);-
202 if(that->load(searchPath)
that->load(searchPath)Description
TRUEevaluated 82 times by 4 tests
Evaluated by:
  • tst_QImageReader
  • tst_QMovie
  • tst_QResourceEngine
  • tst_QWidget
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_QWidget_window
) {
8-82
203 that->absoluteFilePath = QLatin1Char(':') + searchPath;-
204 break;
executed 82 times by 4 tests: break;
Executed by:
  • tst_QImageReader
  • tst_QMovie
  • tst_QResourceEngine
  • tst_QWidget
82
205 }-
206 }
executed 8 times by 2 tests: end of block
Executed by:
  • tst_QResourceEngine
  • tst_QWidget_window
8
207 }
executed 86 times by 5 tests: end of block
Executed by:
  • tst_QImageReader
  • tst_QMovie
  • tst_QResourceEngine
  • tst_QWidget
  • tst_QWidget_window
86
208}-
209-
210void-
211QResourcePrivate::ensureChildren() const-
212{-
213 ensureInitialized();-
214 if(!children.isEmpty()
!children.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 173 times by 6 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
|| !container
!containerDescription
TRUEnever evaluated
FALSEevaluated 173 times by 6 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
|| related.isEmpty()
related.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 173 times by 6 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
)
0-173
215 return;
never executed: return;
0
216-
217 QString path = absoluteFilePath, k;-
218 if(path.startsWith(QLatin1Char(':'))
path.startsWit...tin1Char(':'))Description
TRUEevaluated 173 times by 6 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
FALSEnever evaluated
)
0-173
219 path = path.mid(1);
executed 173 times by 6 tests: path = path.mid(1);
Executed by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
173
220 QSet<QString> kids;-
221 QString cleaned = cleanPath(path);-
222 for(int i = 0; i < related.size()
i < related.size()Description
TRUEevaluated 208 times by 6 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
FALSEevaluated 173 times by 6 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
; ++i) {
173-208
223 QResourceRoot *res = related.at(i);-
224 if(res->mappingRootSubdir(path, &k)
res->mappingRo...bdir(path, &k)Description
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEevaluated 190 times by 6 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
&& !k.isEmpty()
!k.isEmpty()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QResourceEngine
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
) {
3-190
225 if(!kids.contains(k)
!kids.contains(k)Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QResourceEngine
FALSEnever evaluated
) {
0-3
226 children += k;-
227 kids.insert(k);-
228 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_QResourceEngine
3
229 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_QResourceEngine
else {
3
230 const int node = res->findNode(cleaned);-
231 if(node != -1
node != -1Description
TRUEevaluated 205 times by 6 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
FALSEnever evaluated
) {
0-205
232 QStringList related_children = res->children(node);-
233 for(int kid = 0; kid < related_children.size()
kid < related_children.size()Description
TRUEevaluated 605 times by 6 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
FALSEevaluated 205 times by 6 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
; ++kid) {
205-605
234 k = related_children.at(kid);-
235 if(!kids.contains(k)
!kids.contains(k)Description
TRUEevaluated 511 times by 6 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
FALSEevaluated 94 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
) {
94-511
236 children += k;-
237 kids.insert(k);-
238 }
executed 511 times by 6 tests: end of block
Executed by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
511
239 }
executed 605 times by 6 tests: end of block
Executed by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
605
240 }
executed 205 times by 6 tests: end of block
Executed by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
205
241 }
executed 205 times by 6 tests: end of block
Executed by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
205
242 }-
243}
executed 173 times by 6 tests: end of block
Executed by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
173
244QResource::QResource(const QString &file, const QLocale &locale) : d_ptr(new QResourcePrivate(this))-
245{-
246 QResourcePrivate * const d = d_func();-
247 d->fileName = file;-
248 d->locale = locale;-
249}
executed 44852 times by 112 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
44852
250-
251-
252-
253-
254QResource::~QResource()-
255{-
256}-
257void QResource::setLocale(const QLocale &locale)-
258{-
259 QResourcePrivate * const d = d_func();-
260 d->clear();-
261 d->locale = locale;-
262}
executed 1 time by 1 test: end of block
Executed by:
  • tst_QResourceEngine
1
263-
264-
265-
266-
267-
268QLocale QResource::locale() const-
269{-
270 const QResourcePrivate * const d = d_func();-
271 return
never executed: return d->locale;
d->locale;
never executed: return d->locale;
0
272}-
273void QResource::setFileName(const QString &file)-
274{-
275 QResourcePrivate * const d = d_func();-
276 d->clear();-
277 d->fileName = file;-
278}
executed 44849 times by 112 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
44849
279QString QResource::fileName() const-
280{-
281 const QResourcePrivate * const d = d_func();-
282 d->ensureInitialized();-
283 return
executed 33453 times by 83 tests: return d->fileName;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • ...
d->fileName;
executed 33453 times by 83 tests: return d->fileName;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • ...
33453
284}-
285QString QResource::absoluteFilePath() const-
286{-
287 const QResourcePrivate * const d = d_func();-
288 d->ensureInitialized();-
289 return
executed 1808 times by 46 tests: return d->absoluteFilePath;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QKeySequence
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • ...
d->absoluteFilePath;
executed 1808 times by 46 tests: return d->absoluteFilePath;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QKeySequence
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • ...
1808
290}-
291-
292-
293-
294-
295-
296-
297-
298bool QResource::isValid() const-
299{-
300 const QResourcePrivate * const d = d_func();-
301 d->ensureInitialized();-
302 return
executed 130130 times by 111 tests: return !d->related.isEmpty();
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
!d->related.isEmpty();
executed 130130 times by 111 tests: return !d->related.isEmpty();
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
130130
303}-
304bool QResource::isCompressed() const-
305{-
306 const QResourcePrivate * const d = d_func();-
307 d->ensureInitialized();-
308 return
executed 158193 times by 112 tests: return d->compressed;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
d->compressed;
executed 158193 times by 112 tests: return d->compressed;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
158193
309}-
310-
311-
312-
313-
314-
315-
316-
317qint64 QResource::size() const-
318{-
319 const QResourcePrivate * const d = d_func();-
320 d->ensureInitialized();-
321 return
executed 99540 times by 82 tests: return d->size;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • ...
d->size;
executed 99540 times by 82 tests: return d->size;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • ...
99540
322}-
323const uchar *QResource::data() const-
324{-
325 const QResourcePrivate * const d = d_func();-
326 d->ensureInitialized();-
327 return
executed 12720 times by 82 tests: return d->data;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • ...
d->data;
executed 12720 times by 82 tests: return d->data;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • ...
12720
328}-
329bool QResource::isDir() const-
330{-
331 const QResourcePrivate * const d = d_func();-
332 d->ensureInitialized();-
333 return
executed 1832 times by 42 tests: return d->container;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QKeySequence
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QMimeDatabase
  • ...
d->container;
executed 1832 times by 42 tests: return d->container;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QKeySequence
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QMimeDatabase
  • ...
1832
334}-
335QStringList QResource::children() const-
336{-
337 const QResourcePrivate * const d = d_func();-
338 d->ensureChildren();-
339 return
executed 173 times by 6 tests: return d->children;
Executed by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
d->children;
executed 173 times by 6 tests: return d->children;
Executed by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
173
340}-
341void-
342QResource::addSearchPath(const QString &path)-
343{-
344 if (!path.startsWith(QLatin1Char('/'))
!path.startsWi...tin1Char('/'))Description
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QResourceEngine
) {
0-2
345 QMessageLogger(__FILE__, 554, __PRETTY_FUNCTION__).warning("QResource::addResourceSearchPath: Search paths must be absolute (start with /) [%s]",-
346 path.toLocal8Bit().data());-
347 return;
never executed: return;
0
348 }-
349 QMutexLocker lock(resourceMutex());-
350 resourceSearchPaths()->prepend(path);-
351}
executed 2 times by 1 test: end of block
Executed by:
  • tst_QResourceEngine
2
352QStringList-
353QResource::searchPaths()-
354{-
355 QMutexLocker lock(resourceMutex());-
356 return
never executed: return *resourceSearchPaths();
*resourceSearchPaths();
never executed: return *resourceSearchPaths();
0
357}-
358-
359inline uint QResourceRoot::hash(int node) const-
360{-
361 if(!node
!nodeDescription
TRUEnever evaluated
FALSEevaluated 955175 times by 112 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
)
0-955175
362 return
never executed: return 0;
0;
never executed: return 0;
0
363 const int offset = findOffset(node);-
364 int name_offset = (tree[offset+0] << 24) + (tree[offset+1] << 16) +-
365 (tree[offset+2] << 8) + (tree[offset+3] << 0);-
366 name_offset += 2;-
367 return
executed 955175 times by 112 tests: return (names[name_offset+0] << 24) + (names[name_offset+1] << 16) + (names[name_offset+2] << 8) + (names[name_offset+3] << 0);
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
(names[name_offset+0] << 24) + (names[name_offset+1] << 16) +
executed 955175 times by 112 tests: return (names[name_offset+0] << 24) + (names[name_offset+1] << 16) + (names[name_offset+2] << 8) + (names[name_offset+3] << 0);
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
955175
368 (names[name_offset+2] << 8) + (names[name_offset+3] << 0);
executed 955175 times by 112 tests: return (names[name_offset+0] << 24) + (names[name_offset+1] << 16) + (names[name_offset+2] << 8) + (names[name_offset+3] << 0);
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
955175
369}-
370inline QString QResourceRoot::name(int node) const-
371{-
372 if(!node
!nodeDescription
TRUEnever evaluated
FALSEevaluated 255247 times by 85 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
)
0-255247
373 return
never executed: return QString();
QString();
never executed: return QString();
0
374 const int offset = findOffset(node);-
375-
376 QString ret;-
377 int name_offset = (tree[offset+0] << 24) + (tree[offset+1] << 16) +-
378 (tree[offset+2] << 8) + (tree[offset+3] << 0);-
379 const short name_length = (names[name_offset+0] << 8) +-
380 (names[name_offset+1] << 0);-
381 name_offset += 2;-
382 name_offset += 4;-
383-
384 ret.resize(name_length);-
385 QChar *strData = ret.data();-
386 for(int i = 0; i < name_length*2
i < name_length*2Description
TRUEevaluated 2843589 times by 85 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
FALSEevaluated 255247 times by 85 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
; i+=2) {
255247-2843589
387 QChar c(names[name_offset+i+1], names[name_offset+i]);-
388 *strData = c;-
389 ++strData;-
390 }
executed 2843589 times by 85 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
2843589
391 return
executed 255247 times by 85 tests: return ret;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
ret;
executed 255247 times by 85 tests: return ret;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
255247
392}-
393-
394int QResourceRoot::findNode(const QString &_path, const QLocale &locale) const-
395{-
396 QString path = _path;-
397 {-
398 QString root = mappingRoot();-
399 if(!root.isEmpty()
!root.isEmpty()Description
TRUEevaluated 1068 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEevaluated 149989 times by 112 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
) {
1068-149989
400 if(root == path
root == pathDescription
TRUEevaluated 65 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEevaluated 1003 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
) {
65-1003
401 path = QLatin1Char('/');-
402 }
executed 65 times by 2 tests: end of block
Executed by:
  • tst_QResourceEngine
  • tst_rcc
else {
65
403 if(!root.endsWith(QLatin1Char('/'))
!root.endsWith...tin1Char('/'))Description
TRUEevaluated 1003 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEnever evaluated
)
0-1003
404 root += QLatin1Char('/');
executed 1003 times by 2 tests: root += QLatin1Char('/');
Executed by:
  • tst_QResourceEngine
  • tst_rcc
1003
405 if(path.size() >= root.size()
path.size() >= root.size()Description
TRUEevaluated 885 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEevaluated 118 times by 1 test
Evaluated by:
  • tst_QResourceEngine
&& path.startsWith(root)
path.startsWith(root)Description
TRUEevaluated 602 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEevaluated 283 times by 1 test
Evaluated by:
  • tst_QResourceEngine
)
118-885
406 path = path.mid(root.length()-1);
executed 602 times by 2 tests: path = path.mid(root.length()-1);
Executed by:
  • tst_QResourceEngine
  • tst_rcc
602
407 if(path.isEmpty()
path.isEmpty()Description
TRUEnever evaluated
FALSEevaluated 1003 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
)
0-1003
408 path = QLatin1Char('/');
never executed: path = QLatin1Char('/');
0
409 }
executed 1003 times by 2 tests: end of block
Executed by:
  • tst_QResourceEngine
  • tst_rcc
1003
410 }-
411 }-
412-
413-
414-
415-
416 if(path == QLatin1String("/")
path == QLatin1String("/")Description
TRUEevaluated 142 times by 5 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_rcc
FALSEevaluated 150915 times by 112 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
)
142-150915
417 return
executed 142 times by 5 tests: return 0;
Executed by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_rcc
0;
executed 142 times by 5 tests: return 0;
Executed by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_rcc
142
418-
419-
420 int child_count = (tree[6] << 24) + (tree[7] << 16) +-
421 (tree[8] << 8) + (tree[9] << 0);-
422 int child = (tree[10] << 24) + (tree[11] << 16) +-
423 (tree[12] << 8) + (tree[13] << 0);-
424-
425-
426 int node = -1;-
427-
428 QStringSplitter splitter(path);-
429 while (child_count
child_countDescription
TRUEevaluated 403831 times by 112 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
FALSEnever evaluated
&& splitter.hasNext()
splitter.hasNext()Description
TRUEevaluated 368164 times by 112 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
FALSEevaluated 35667 times by 79 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • ...
) {
0-403831
430 QStringRef segment = splitter.next();-
431-
432-
433-
434-
435-
436-
437-
438 const uint h = qt_hash(segment);-
439-
440-
441 int l = 0, r = child_count-1;-
442 int sub_node = (l+r+1)/2;-
443 while(r != l
r != lDescription
TRUEevaluated 261040 times by 73 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • ...
FALSEevaluated 328096 times by 112 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
) {
261040-328096
444 const uint sub_node_hash = hash(child+sub_node);-
445 if(h == sub_node_hash
h == sub_node_hashDescription
TRUEevaluated 40068 times by 72 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • ...
FALSEevaluated 220972 times by 72 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • ...
)
40068-220972
446 break;
executed 40068 times by 72 tests: break;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • ...
40068
447 else if(h < sub_node_hash
h < sub_node_hashDescription
TRUEevaluated 138355 times by 72 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • ...
FALSEevaluated 82617 times by 67 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • ...
)
82617-138355
448 r = sub_node - 1;
executed 138355 times by 72 tests: r = sub_node - 1;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • ...
138355
449 else-
450 l = sub_node;
executed 82617 times by 67 tests: l = sub_node;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • ...
82617
451 sub_node = (l + r + 1) / 2;-
452 }
executed 220972 times by 72 tests: end of block
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • ...
220972
453 sub_node += child;-
454-
455-
456 bool found = false;-
457 if(hash(sub_node) == h
hash(sub_node) == hDescription
TRUEevaluated 254448 times by 85 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
FALSEevaluated 113716 times by 112 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
) {
113716-254448
458 while(sub_node > child
sub_node > childDescription
TRUEevaluated 40138 times by 72 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • ...
FALSEevaluated 214450 times by 84 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
&& hash(sub_node-1) == h
hash(sub_node-1) == hDescription
TRUEevaluated 140 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEevaluated 39998 times by 72 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • ...
)
140-214450
459 --
executed 140 times by 2 tests: --sub_node;
Executed by:
  • tst_QResourceEngine
  • tst_rcc
sub_node;
executed 140 times by 2 tests: --sub_node;
Executed by:
  • tst_QResourceEngine
  • tst_rcc
140
460 for(; sub_node < child+child_count
sub_node < child+child_countDescription
TRUEevaluated 285833 times by 85 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
FALSEevaluated 4476 times by 37 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAccessibility
  • tst_QDir
  • tst_QDirIterator
  • tst_QFile
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • tst_QGraphicsScene
  • tst_QGraphicsWidget
  • tst_QGuiApplication
  • tst_QGuiVariant
  • tst_QIcon
  • tst_QImageReader
  • tst_QKeySequence
  • tst_QMdiArea
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • ...
&& hash(sub_node) == h
hash(sub_node) == hDescription
TRUEevaluated 254642 times by 85 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
FALSEevaluated 31191 times by 68 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsItem
  • ...
; ++sub_node) {
4476-285833
461 if(name(sub_node) == segment
name(sub_node) == segmentDescription
TRUEevaluated 254642 times by 85 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
FALSEnever evaluated
) {
0-254642
462 found = true;-
463 int offset = findOffset(sub_node);-
464-
465-
466-
467 offset += 4;-
468-
469 const short flags = (tree[offset+0] << 8) +-
470 (tree[offset+1] << 0);-
471 offset += 2;-
472-
473 if(!splitter.hasNext()
!splitter.hasNext()Description
TRUEevaluated 37393 times by 84 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
FALSEevaluated 217249 times by 79 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
) {
37393-217249
474 if(!(flags & Directory)
!(flags & Directory)Description
TRUEevaluated 36435 times by 84 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
FALSEevaluated 958 times by 8 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QIcon
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
) {
958-36435
475 const short country = (tree[offset+0] << 8) +-
476 (tree[offset+1] << 0);-
477 offset += 2;-
478-
479 const short language = (tree[offset+0] << 8) +-
480 (tree[offset+1] << 0);-
481 offset += 2;-
482-
483-
484-
485 if(country == locale.country()
country == locale.country()Description
TRUEevaluated 629 times by 7 tests
Evaluated by:
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_rcc
  • tst_selftests - unknown status
FALSEevaluated 35806 times by 79 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • ...
&& language == locale.language()
language == locale.language()Description
TRUEevaluated 574 times by 7 tests
Evaluated by:
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_rcc
  • tst_selftests - unknown status
FALSEevaluated 55 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
) {
55-35806
486-
487-
488-
489 return
executed 574 times by 7 tests: return sub_node;
Executed by:
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_rcc
  • tst_selftests - unknown status
sub_node;
executed 574 times by 7 tests: return sub_node;
Executed by:
  • tst_QDateTimeEdit
  • tst_QDoubleSpinBox
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QSpinBox
  • tst_rcc
  • tst_selftests - unknown status
574
490 } else if((country == QLocale::AnyCountry
country == QLocale::AnyCountryDescription
TRUEevaluated 35787 times by 79 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • ...
FALSEevaluated 74 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
&& language == locale.language()
language == locale.language()Description
TRUEevaluated 55 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEevaluated 35732 times by 79 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • ...
) ||
55-35787
491 (country == QLocale::AnyCountry
country == QLocale::AnyCountryDescription
TRUEevaluated 35732 times by 79 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • ...
FALSEevaluated 74 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
&& language == QLocale::C
language == QLocale::CDescription
TRUEevaluated 35626 times by 79 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • ...
FALSEevaluated 106 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
&& node == -1
node == -1Description
TRUEevaluated 35590 times by 79 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • ...
FALSEevaluated 36 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
)) {
36-35732
492 node = sub_node;-
493 }
executed 35645 times by 79 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • ...
35645
494 continue;
executed 35861 times by 79 tests: continue;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • ...
35861
495 } else {-
496-
497-
498-
499-
500 return
executed 958 times by 8 tests: return sub_node;
Executed by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QIcon
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
sub_node;
executed 958 times by 8 tests: return sub_node;
Executed by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QIcon
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
958
501 }-
502 }-
503-
504 if(!(flags & Directory)
!(flags & Directory)Description
TRUEnever evaluated
FALSEevaluated 217249 times by 79 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
)
0-217249
505 return
never executed: return -1;
-1;
never executed: return -1;
0
506-
507 child_count = (tree[offset+0] << 24) + (tree[offset+1] << 16) +-
508 (tree[offset+2] << 8) + (tree[offset+3] << 0);-
509 offset += 4;-
510 child = (tree[offset+0] << 24) + (tree[offset+1] << 16) +-
511 (tree[offset+2] << 8) + (tree[offset+3] << 0);-
512 break;
executed 217249 times by 79 tests: break;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
217249
513 }-
514 }
never executed: end of block
0
515 }
executed 252916 times by 85 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
252916
516 if(!found
!foundDescription
TRUEevaluated 113716 times by 112 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
FALSEevaluated 252916 times by 85 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
)
113716-252916
517 break;
executed 113716 times by 112 tests: break;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
113716
518 }
executed 252916 times by 85 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
252916
519-
520-
521-
522 return
executed 149383 times by 112 tests: return node;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
node;
executed 149383 times by 112 tests: return node;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
149383
523}-
524short QResourceRoot::flags(int node) const-
525{-
526 if(node == -1
node == -1Description
TRUEnever evaluated
FALSEevaluated 73252 times by 84 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
)
0-73252
527 return
never executed: return 0;
0;
never executed: return 0;
0
528 const int offset = findOffset(node) + 4;-
529 return
executed 73252 times by 84 tests: return (tree[offset+0] << 8) + (tree[offset+1] << 0);
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
(tree[offset+0] << 8) + (tree[offset+1] << 0);
executed 73252 times by 84 tests: return (tree[offset+0] << 8) + (tree[offset+1] << 0);
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
73252
530}-
531const uchar *QResourceRoot::data(int node, qint64 *size) const-
532{-
533 if(node == -1
node == -1Description
TRUEnever evaluated
FALSEevaluated 36149 times by 84 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
) {
0-36149
534 *size = 0;-
535 return
never executed: return 0;
0;
never executed: return 0;
0
536 }-
537 int offset = findOffset(node) + 4;-
538-
539 const short flags = (tree[offset+0] << 8) + (tree[offset+1] << 0);-
540 offset += 2;-
541-
542 offset += 4;-
543-
544 if(!(flags & Directory)
!(flags & Directory)Description
TRUEevaluated 36149 times by 84 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
FALSEnever evaluated
) {
0-36149
545 const int data_offset = (tree[offset+0] << 24) + (tree[offset+1] << 16) +-
546 (tree[offset+2] << 8) + (tree[offset+3] << 0);-
547 const uint data_length = (payloads[data_offset+0] << 24) + (payloads[data_offset+1] << 16) +-
548 (payloads[data_offset+2] << 8) + (payloads[data_offset+3] << 0);-
549 const uchar *ret = payloads+data_offset+4;-
550 *size = data_length;-
551 return
executed 36149 times by 84 tests: return ret;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
ret;
executed 36149 times by 84 tests: return ret;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • ...
36149
552 }-
553 *size = 0;-
554 return
never executed: return 0;
0;
never executed: return 0;
0
555}-
556QStringList QResourceRoot::children(int node) const-
557{-
558 if(node == -1
node == -1Description
TRUEnever evaluated
FALSEevaluated 205 times by 6 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
)
0-205
559 return
never executed: return QStringList();
QStringList();
never executed: return QStringList();
0
560 int offset = findOffset(node) + 4;-
561-
562 const short flags = (tree[offset+0] << 8) + (tree[offset+1] << 0);-
563 offset += 2;-
564-
565 QStringList ret;-
566 if(flags & Directory
flags & DirectoryDescription
TRUEevaluated 205 times by 6 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
FALSEnever evaluated
) {
0-205
567 const int child_count = (tree[offset+0] << 24) + (tree[offset+1] << 16) +-
568 (tree[offset+2] << 8) + (tree[offset+3] << 0);-
569 offset += 4;-
570 const int child_off = (tree[offset+0] << 24) + (tree[offset+1] << 16) +-
571 (tree[offset+2] << 8) + (tree[offset+3] << 0);-
572 ret.reserve(child_count);-
573 for(int i = child_off; i < child_off+child_count
i < child_off+child_countDescription
TRUEevaluated 605 times by 6 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
FALSEevaluated 205 times by 6 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
; ++i)
205-605
574 ret << name(i);
executed 605 times by 6 tests: ret << name(i);
Executed by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
605
575 }
executed 205 times by 6 tests: end of block
Executed by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
205
576 return
executed 205 times by 6 tests: return ret;
Executed by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
ret;
executed 205 times by 6 tests: return ret;
Executed by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
205
577}-
578bool QResourceRoot::mappingRootSubdir(const QString &path, QString *match) const-
579{-
580 const QString root = mappingRoot();-
581 if(!root.isEmpty()
!root.isEmpty()Description
TRUEevaluated 367 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEevaluated 113590 times by 112 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
) {
367-113590
582 const QVector<QStringRef> root_segments = root.splitRef(QLatin1Char('/'), QString::SkipEmptyParts),-
583 path_segments = path.splitRef(QLatin1Char('/'), QString::SkipEmptyParts);-
584 if(path_segments.size() <= root_segments.size()
path_segments....egments.size()Description
TRUEevaluated 88 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEevaluated 279 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
) {
88-279
585 int matched = 0;-
586 for(int i = 0; i < path_segments.size()
i < path_segments.size()Description
TRUEevaluated 85 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEevaluated 18 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
; ++i) {
18-85
587 if(root_segments[i] != path_segments[i]
root_segments[...th_segments[i]Description
TRUEevaluated 70 times by 1 test
Evaluated by:
  • tst_QResourceEngine
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
)
15-70
588 break;
executed 70 times by 1 test: break;
Executed by:
  • tst_QResourceEngine
70
589 ++matched;-
590 }
executed 15 times by 2 tests: end of block
Executed by:
  • tst_QResourceEngine
  • tst_rcc
15
591 if(matched == path_segments.size()
matched == pat...egments.size()Description
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEevaluated 70 times by 1 test
Evaluated by:
  • tst_QResourceEngine
) {
18-70
592 if(match
matchDescription
TRUEevaluated 18 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEnever evaluated
&& root_segments.size() > matched
root_segments.size() > matchedDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QResourceEngine
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
)
0-18
593 *
executed 3 times by 1 test: *match = root_segments.at(matched).toString();
Executed by:
  • tst_QResourceEngine
match = root_segments.at(matched).toString();
executed 3 times by 1 test: *match = root_segments.at(matched).toString();
Executed by:
  • tst_QResourceEngine
3
594 return
executed 18 times by 2 tests: return true;
Executed by:
  • tst_QResourceEngine
  • tst_rcc
true;
executed 18 times by 2 tests: return true;
Executed by:
  • tst_QResourceEngine
  • tst_rcc
18
595 }-
596 }
executed 70 times by 1 test: end of block
Executed by:
  • tst_QResourceEngine
70
597 }
executed 349 times by 2 tests: end of block
Executed by:
  • tst_QResourceEngine
  • tst_rcc
349
598 return
executed 113939 times by 112 tests: return false;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
false;
executed 113939 times by 112 tests: return false;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
113939
599}-
600-
601__attribute__((visibility("default"))) bool qRegisterResourceData(int version, const unsigned char *tree,-
602 const unsigned char *name, const unsigned char *data)-
603{-
604 QMutexLocker lock(resourceMutex());-
605 if(version == 0x01
version == 0x01Description
TRUEevaluated 1202 times by 19 tests
Evaluated by:
  • tst_QApplication
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qmimetype
  • tst_qnetworkreply - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_quuid - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
&& resourceList()
resourceList()Description
TRUEevaluated 1202 times by 19 tests
Evaluated by:
  • tst_QApplication
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qmimetype
  • tst_qnetworkreply - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_quuid - unknown status
  • tst_selftests - unknown status
FALSEnever evaluated
) {
0-1202
606 bool found = false;-
607 QResourceRoot res(tree, name, data);-
608 for(int i = 0; i < resourceList()->size()
i < resourceList()->size()Description
TRUEevaluated 497 times by 7 tests
Evaluated by:
  • tst_QApplication
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_qapplication - unknown status
  • tst_qmimetype
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
FALSEevaluated 1020 times by 15 tests
Evaluated by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qnetworkreply - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_quuid - unknown status
  • tst_selftests - unknown status
; ++i) {
497-1020
609 if(*
*resourceList()->at(i) == resDescription
TRUEevaluated 182 times by 6 tests
Evaluated by:
  • tst_QApplication
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_qapplication - unknown status
  • tst_qmimetype
  • tst_qprocess - unknown status
FALSEevaluated 315 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QPrinter
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
resourceList()->at(i) == res
*resourceList()->at(i) == resDescription
TRUEevaluated 182 times by 6 tests
Evaluated by:
  • tst_QApplication
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_qapplication - unknown status
  • tst_qmimetype
  • tst_qprocess - unknown status
FALSEevaluated 315 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QPrinter
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
) {
182-315
610 found = true;-
611 break;
executed 182 times by 6 tests: break;
Executed by:
  • tst_QApplication
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_qapplication - unknown status
  • tst_qmimetype
  • tst_qprocess - unknown status
182
612 }-
613 }
executed 315 times by 5 tests: end of block
Executed by:
  • tst_QApplication
  • tst_QPrinter
  • tst_qapplication - unknown status
  • tst_qprocess - unknown status
  • tst_selftests - unknown status
315
614 if(!found
!foundDescription
TRUEevaluated 1020 times by 15 tests
Evaluated by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qnetworkreply - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_quuid - unknown status
  • tst_selftests - unknown status
FALSEevaluated 182 times by 6 tests
Evaluated by:
  • tst_QApplication
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_qapplication - unknown status
  • tst_qmimetype
  • tst_qprocess - unknown status
) {
182-1020
615 QResourceRoot *root = new QResourceRoot(tree, name, data);-
616 root->ref.ref();-
617 resourceList()->append(root);-
618 }
executed 1020 times by 15 tests: end of block
Executed by:
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qnetworkreply - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_quuid - unknown status
  • tst_selftests - unknown status
1020
619 return
executed 1202 times by 19 tests: return true;
Executed by:
  • tst_QApplication
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qmimetype
  • tst_qnetworkreply - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_quuid - unknown status
  • tst_selftests - unknown status
true;
executed 1202 times by 19 tests: return true;
Executed by:
  • tst_QApplication
  • tst_QMimeDatabase
  • tst_QPrinter
  • tst_qapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qlogging - unknown status
  • tst_qmimetype
  • tst_qnetworkreply - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_quuid - unknown status
  • tst_selftests - unknown status
1202
620 }-
621 return
never executed: return false;
false;
never executed: return false;
0
622}-
623-
624__attribute__((visibility("default"))) bool qUnregisterResourceData(int version, const unsigned char *tree,-
625 const unsigned char *name, const unsigned char *data)-
626{-
627 QMutexLocker lock(resourceMutex());-
628 if(version == 0x01
version == 0x01Description
TRUEevaluated 357 times by 181 tests
Evaluated by:
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qdatawidgetmapper - unknown status
  • ...
FALSEnever evaluated
&& resourceList()
resourceList()Description
TRUEevaluated 357 times by 181 tests
Evaluated by:
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qdatawidgetmapper - unknown status
  • ...
FALSEnever evaluated
) {
0-357
629 QResourceRoot res(tree, name, data);-
630 for(int i = 0; i < resourceList()->size()
i < resourceList()->size()Description
TRUEevaluated 898 times by 181 tests
Evaluated by:
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qdatawidgetmapper - unknown status
  • ...
FALSEevaluated 357 times by 181 tests
Evaluated by:
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qdatawidgetmapper - unknown status
  • ...
; ) {
357-898
631 if(*
*resourceList()->at(i) == resDescription
TRUEevaluated 357 times by 181 tests
Evaluated by:
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qdatawidgetmapper - unknown status
  • ...
FALSEevaluated 541 times by 181 tests
Evaluated by:
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qdatawidgetmapper - unknown status
  • ...
resourceList()->at(i) == res
*resourceList()->at(i) == resDescription
TRUEevaluated 357 times by 181 tests
Evaluated by:
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qdatawidgetmapper - unknown status
  • ...
FALSEevaluated 541 times by 181 tests
Evaluated by:
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qdatawidgetmapper - unknown status
  • ...
) {
357-541
632 QResourceRoot *root = resourceList()->takeAt(i);-
633 if(!root->ref.deref()
!root->ref.deref()Description
TRUEevaluated 357 times by 181 tests
Evaluated by:
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qdatawidgetmapper - unknown status
  • ...
FALSEnever evaluated
)
0-357
634 delete root;
executed 357 times by 181 tests: delete root;
Executed by:
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qdatawidgetmapper - unknown status
  • ...
357
635 }
executed 357 times by 181 tests: end of block
Executed by:
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qdatawidgetmapper - unknown status
  • ...
else {
357
636 ++i;-
637 }
executed 541 times by 181 tests: end of block
Executed by:
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qdatawidgetmapper - unknown status
  • ...
541
638 }-
639 return
executed 357 times by 181 tests: return true;
Executed by:
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qdatawidgetmapper - unknown status
  • ...
true;
executed 357 times by 181 tests: return true;
Executed by:
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qcolordialog - unknown status
  • tst_qcolumnview - unknown status
  • tst_qcombobox - unknown status
  • tst_qcommandlinkbutton - unknown status
  • tst_qcompleter - unknown status
  • tst_qdatawidgetmapper - unknown status
  • ...
357
640 }-
641 return
never executed: return false;
false;
never executed: return false;
0
642}-
643-
644-
645-
646class QDynamicBufferResourceRoot: public QResourceRoot-
647{-
648 QString root;-
649 const uchar *buffer;-
650-
651public:-
652 inline QDynamicBufferResourceRoot(const QString &_root) : root(_root), buffer(0) { }
executed 16 times by 2 tests: end of block
Executed by:
  • tst_QResourceEngine
  • tst_rcc
16
653 inline ~QDynamicBufferResourceRoot() { }-
654 inline const uchar *mappingBuffer() const { return
never executed: return buffer;
buffer;
never executed: return buffer;
}
0
655 virtual QString mappingRoot() const override { return
executed 2447 times by 2 tests: return root;
Executed by:
  • tst_QResourceEngine
  • tst_rcc
root;
executed 2447 times by 2 tests: return root;
Executed by:
  • tst_QResourceEngine
  • tst_rcc
}
2447
656 virtual ResourceRootType type() const override { return
never executed: return Resource_Buffer;
Resource_Buffer;
never executed: return Resource_Buffer;
}
0
657-
658-
659 bool registerSelf(const uchar *b, int size)-
660 {-
661-
662 if (size >= 0
size >= 0Description
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEnever evaluated
&& size < 20
size < 20Description
TRUEnever evaluated
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
)
0-16
663 return
never executed: return false;
false;
never executed: return false;
0
664-
665-
666 int offset = 0;-
667-
668-
669 if(b[offset+0] != 'q'
b[offset+0] != 'q'Description
TRUEnever evaluated
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
|| b[offset+1] != 'r'
b[offset+1] != 'r'Description
TRUEnever evaluated
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
||
0-16
670 b[offset+2] != 'e'
b[offset+2] != 'e'Description
TRUEnever evaluated
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
|| b[offset+3] != 's'
b[offset+3] != 's'Description
TRUEnever evaluated
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
) {
0-16
671 return
never executed: return false;
false;
never executed: return false;
0
672 }-
673 offset += 4;-
674-
675 const int version = (b[offset+0] << 24) + (b[offset+1] << 16) +-
676 (b[offset+2] << 8) + (b[offset+3] << 0);-
677 offset += 4;-
678-
679 const int tree_offset = (b[offset+0] << 24) + (b[offset+1] << 16) +-
680 (b[offset+2] << 8) + (b[offset+3] << 0);-
681 offset += 4;-
682-
683 const int data_offset = (b[offset+0] << 24) + (b[offset+1] << 16) +-
684 (b[offset+2] << 8) + (b[offset+3] << 0);-
685 offset += 4;-
686-
687 const int name_offset = (b[offset+0] << 24) + (b[offset+1] << 16) +-
688 (b[offset+2] << 8) + (b[offset+3] << 0);-
689 offset += 4;-
690-
691-
692 if (size >= 0
size >= 0Description
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEnever evaluated
&& (tree_offset >= size
tree_offset >= sizeDescription
TRUEnever evaluated
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
|| data_offset >= size
data_offset >= sizeDescription
TRUEnever evaluated
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
|| name_offset >= size
name_offset >= sizeDescription
TRUEnever evaluated
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
))
0-16
693 return
never executed: return false;
false;
never executed: return false;
0
694-
695 if(version == 0x01
version == 0x01Description
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEnever evaluated
) {
0-16
696 buffer = b;-
697 setSource(b+tree_offset, b+name_offset, b+data_offset);-
698 return
executed 16 times by 2 tests: return true;
Executed by:
  • tst_QResourceEngine
  • tst_rcc
true;
executed 16 times by 2 tests: return true;
Executed by:
  • tst_QResourceEngine
  • tst_rcc
16
699 }-
700 return
never executed: return false;
false;
never executed: return false;
0
701 }-
702};-
703-
704-
705-
706-
707-
708-
709class QDynamicFileResourceRoot: public QDynamicBufferResourceRoot-
710{-
711 QString fileName;-
712-
713 uchar *unmapPointer;-
714 unsigned int unmapLength;-
715-
716public:-
717 inline QDynamicFileResourceRoot(const QString &_root) : QDynamicBufferResourceRoot(_root), unmapPointer(0), unmapLength(0) { }
executed 16 times by 2 tests: end of block
Executed by:
  • tst_QResourceEngine
  • tst_rcc
16
718 ~QDynamicFileResourceRoot() {-
719-
720 if (unmapPointer
unmapPointerDescription
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEnever evaluated
) {
0-16
721 munmap((char*)unmapPointer, unmapLength);-
722 unmapPointer = 0;-
723 unmapLength = 0;-
724 }
executed 16 times by 2 tests: end of block
Executed by:
  • tst_QResourceEngine
  • tst_rcc
else
16
725-
726 {-
727 delete [] mappingBuffer();-
728 }
never executed: end of block
0
729 }-
730 QString mappingFile() const { return
executed 20 times by 2 tests: return fileName;
Executed by:
  • tst_QResourceEngine
  • tst_rcc
fileName;
executed 20 times by 2 tests: return fileName;
Executed by:
  • tst_QResourceEngine
  • tst_rcc
}
20
731 virtual ResourceRootType type() const override { return
executed 20 times by 2 tests: return Resource_File;
Executed by:
  • tst_QResourceEngine
  • tst_rcc
Resource_File;
executed 20 times by 2 tests: return Resource_File;
Executed by:
  • tst_QResourceEngine
  • tst_rcc
}
20
732-
733 bool registerSelf(const QString &f) {-
734 bool fromMM = false;-
735 uchar *data = 0;-
736 unsigned int data_len = 0;-
737 int fd = qt_safe_open(QFile::encodeName(f), 00,-
738-
739-
740-
741 0666-
742-
743 );-
744 if (fd >= 0
fd >= 0Description
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEnever evaluated
) {
0-16
745 struct stat64 st;-
746 if (!::fstat64(fd, &st)
!::fstat64(fd, &st)Description
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEnever evaluated
) {
0-16
747 uchar *ptr;-
748 ptr = reinterpret_cast<uchar *>(-
749 mmap(0, st.st_size,-
750 0x1,-
751 0 | 0x02,-
752 fd, 0));-
753 if (ptr
ptrDescription
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEnever evaluated
&& ptr != reinterpret_cast<uchar *>(((void *) -1))
ptr != reinter...((void *) -1))Description
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEnever evaluated
) {
0-16
754 data = ptr;-
755 data_len = st.st_size;-
756 fromMM = true;-
757 }
executed 16 times by 2 tests: end of block
Executed by:
  • tst_QResourceEngine
  • tst_rcc
16
758 }
executed 16 times by 2 tests: end of block
Executed by:
  • tst_QResourceEngine
  • tst_rcc
16
759 ::close(fd);-
760 }
executed 16 times by 2 tests: end of block
Executed by:
  • tst_QResourceEngine
  • tst_rcc
16
761-
762 if(!data
!dataDescription
TRUEnever evaluated
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
) {
0-16
763 QFile file(f);-
764 if (!file.exists()
!file.exists()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
765 return
never executed: return false;
false;
never executed: return false;
0
766 data_len = file.size();-
767 data = new uchar[data_len];-
768-
769 bool ok = false;-
770 if (file.open(QIODevice::ReadOnly)
file.open(QIODevice::ReadOnly)Description
TRUEnever evaluated
FALSEnever evaluated
)
0
771 ok = (data_len == (uint)file.read((char*)data, data_len));
never executed: ok = (data_len == (uint)file.read((char*)data, data_len));
0
772 if (!ok
!okDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
773 delete [] data;-
774 data = 0;-
775 data_len = 0;-
776 return
never executed: return false;
false;
never executed: return false;
0
777 }-
778 fromMM = false;-
779 }
never executed: end of block
0
780 if (data
dataDescription
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEnever evaluated
&& QDynamicBufferResourceRoot::registerSelf(data, data_len)
QDynamicBuffer...ata, data_len)Description
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEnever evaluated
) {
0-16
781 if(fromMM
fromMMDescription
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEnever evaluated
) {
0-16
782 unmapPointer = data;-
783 unmapLength = data_len;-
784 }
executed 16 times by 2 tests: end of block
Executed by:
  • tst_QResourceEngine
  • tst_rcc
16
785 fileName = f;-
786 return
executed 16 times by 2 tests: return true;
Executed by:
  • tst_QResourceEngine
  • tst_rcc
true;
executed 16 times by 2 tests: return true;
Executed by:
  • tst_QResourceEngine
  • tst_rcc
16
787 }-
788 return
never executed: return false;
false;
never executed: return false;
0
789 }-
790};-
791-
792static QString qt_resource_fixResourceRoot(QString r) {-
793 if(!r.isEmpty()
!r.isEmpty()Description
TRUEevaluated 30 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QResourceEngine
) {
2-30
794 if(r.startsWith(QLatin1Char(':'))
r.startsWith(QLatin1Char(':'))Description
TRUEnever evaluated
FALSEevaluated 30 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
)
0-30
795 r = r.mid(1);
never executed: r = r.mid(1);
0
796 if(!r.isEmpty()
!r.isEmpty()Description
TRUEevaluated 30 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEnever evaluated
)
0-30
797 r = QDir::cleanPath(r);
executed 30 times by 2 tests: r = QDir::cleanPath(r);
Executed by:
  • tst_QResourceEngine
  • tst_rcc
30
798 }
executed 30 times by 2 tests: end of block
Executed by:
  • tst_QResourceEngine
  • tst_rcc
30
799 return
executed 32 times by 2 tests: return r;
Executed by:
  • tst_QResourceEngine
  • tst_rcc
r;
executed 32 times by 2 tests: return r;
Executed by:
  • tst_QResourceEngine
  • tst_rcc
32
800}-
801bool-
802QResource::registerResource(const QString &rccFilename, const QString &resourceRoot)-
803{-
804 QString r = qt_resource_fixResourceRoot(resourceRoot);-
805 if(!r.isEmpty()
!r.isEmpty()Description
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QResourceEngine
&& r[0] != QLatin1Char('/')
r[0] != QLatin1Char('/')Description
TRUEnever evaluated
FALSEevaluated 15 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
) {
0-15
806 QMessageLogger(__FILE__, 1060, __PRETTY_FUNCTION__).warning("QDir::registerResource: Registering a resource [%s] must be rooted in an absolute path (start with /) [%s]",-
807 rccFilename.toLocal8Bit().data(), resourceRoot.toLocal8Bit().data());-
808 return
never executed: return false;
false;
never executed: return false;
0
809 }-
810-
811 QDynamicFileResourceRoot *root = new QDynamicFileResourceRoot(r);-
812 if(root->registerSelf(rccFilename)
root->register...f(rccFilename)Description
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEnever evaluated
) {
0-16
813 root->ref.ref();-
814 QMutexLocker lock(resourceMutex());-
815 resourceList()->append(root);-
816 return
executed 16 times by 2 tests: return true;
Executed by:
  • tst_QResourceEngine
  • tst_rcc
true;
executed 16 times by 2 tests: return true;
Executed by:
  • tst_QResourceEngine
  • tst_rcc
16
817 }-
818 delete root;-
819 return
never executed: return false;
false;
never executed: return false;
0
820}-
821bool-
822QResource::unregisterResource(const QString &rccFilename, const QString &resourceRoot)-
823{-
824 QString r = qt_resource_fixResourceRoot(resourceRoot);-
825-
826 QMutexLocker lock(resourceMutex());-
827 ResourceList *list = resourceList();-
828 for(int i = 0; i < list->size()
i < list->size()Description
TRUEevaluated 40 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEnever evaluated
; ++i) {
0-40
829 QResourceRoot *res = list->at(i);-
830 if(res->type() == QResourceRoot::Resource_File
res->type() ==...:Resource_FileDescription
TRUEevaluated 20 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEevaluated 20 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
) {
20
831 QDynamicFileResourceRoot *root = reinterpret_cast<QDynamicFileResourceRoot*>(res);-
832 if (root->mappingFile() == rccFilename
root->mappingF...== rccFilenameDescription
TRUEevaluated 20 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEnever evaluated
&& root->mappingRoot() == r
root->mappingRoot() == rDescription
TRUEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QResourceEngine
) {
0-20
833 resourceList()->removeAt(i);-
834 if(!root->ref.deref()
!root->ref.deref()Description
TRUEevaluated 15 times by 2 tests
Evaluated by:
  • tst_QResourceEngine
  • tst_rcc
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QResourceEngine
) {
1-15
835 delete root;-
836 return
executed 15 times by 2 tests: return true;
Executed by:
  • tst_QResourceEngine
  • tst_rcc
true;
executed 15 times by 2 tests: return true;
Executed by:
  • tst_QResourceEngine
  • tst_rcc
15
837 }-
838 return
executed 1 time by 1 test: return false;
Executed by:
  • tst_QResourceEngine
false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_QResourceEngine
1
839 }-
840 }
executed 4 times by 1 test: end of block
Executed by:
  • tst_QResourceEngine
4
841 }
executed 24 times by 2 tests: end of block
Executed by:
  • tst_QResourceEngine
  • tst_rcc
24
842 return
never executed: return false;
false;
never executed: return false;
0
843}-
844bool-
845QResource::registerResource(const uchar *rccData, const QString &resourceRoot)-
846{-
847 QString r = qt_resource_fixResourceRoot(resourceRoot);-
848 if(!r.isEmpty()
!r.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
&& r[0] != QLatin1Char('/')
r[0] != QLatin1Char('/')Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
849 QMessageLogger(__FILE__, 1131, __PRETTY_FUNCTION__).warning("QDir::registerResource: Registering a resource [%p] must be rooted in an absolute path (start with /) [%s]",-
850 rccData, resourceRoot.toLocal8Bit().data());-
851 return
never executed: return false;
false;
never executed: return false;
0
852 }-
853-
854 QDynamicBufferResourceRoot *root = new QDynamicBufferResourceRoot(r);-
855 if (root->registerSelf(rccData, -1)
root->register...f(rccData, -1)Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
856 root->ref.ref();-
857 QMutexLocker lock(resourceMutex());-
858 resourceList()->append(root);-
859 return
never executed: return true;
true;
never executed: return true;
0
860 }-
861 delete root;-
862 return
never executed: return false;
false;
never executed: return false;
0
863}-
864bool-
865QResource::unregisterResource(const uchar *rccData, const QString &resourceRoot)-
866{-
867 QString r = qt_resource_fixResourceRoot(resourceRoot);-
868-
869 QMutexLocker lock(resourceMutex());-
870 ResourceList *list = resourceList();-
871 for(int i = 0; i < list->size()
i < list->size()Description
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
872 QResourceRoot *res = list->at(i);-
873 if(res->type() == QResourceRoot::Resource_Buffer
res->type() ==...esource_BufferDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
874 QDynamicBufferResourceRoot *root = reinterpret_cast<QDynamicBufferResourceRoot*>(res);-
875 if (root->mappingBuffer() == rccData
root->mappingB...r() == rccDataDescription
TRUEnever evaluated
FALSEnever evaluated
&& root->mappingRoot() == r
root->mappingRoot() == rDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
876 resourceList()->removeAt(i);-
877 if(!root->ref.deref()
!root->ref.deref()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
878 delete root;-
879 return
never executed: return true;
true;
never executed: return true;
0
880 }-
881 return
never executed: return false;
false;
never executed: return false;
0
882 }-
883 }
never executed: end of block
0
884 }
never executed: end of block
0
885 return
never executed: return false;
false;
never executed: return false;
0
886}-
887-
888-
889class QResourceFileEnginePrivate : public QAbstractFileEnginePrivate-
890{-
891protected:-
892 inline QResourceFileEngine* q_func() { return static_cast<QResourceFileEngine *>(q_ptr); } inline const QResourceFileEngine* q_func() const { return static_cast<const QResourceFileEngine *>(q_ptr); } friend class QResourceFileEngine;-
893private:-
894 uchar *map(qint64 offset, qint64 size, QFile::MemoryMapFlags flags);-
895 bool unmap(uchar *ptr);-
896 qint64 offset;-
897 QResource resource;-
898 QByteArray uncompressed;-
899protected:-
900 QResourceFileEnginePrivate() : offset(0) { }
executed 44674 times by 112 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
44674
901};-
902-
903bool QResourceFileEngine::mkdir(const QString &, bool) const-
904{-
905 return
never executed: return false;
false;
never executed: return false;
0
906}-
907-
908bool QResourceFileEngine::rmdir(const QString &, bool) const-
909{-
910 return
never executed: return false;
false;
never executed: return false;
0
911}-
912-
913bool QResourceFileEngine::setSize(qint64)-
914{-
915 return
never executed: return false;
false;
never executed: return false;
0
916}-
917-
918QStringList QResourceFileEngine::entryList(QDir::Filters filters, const QStringList &filterNames) const-
919{-
920 return
never executed: return QAbstractFileEngine::entryList(filters, filterNames);
QAbstractFileEngine::entryList(filters, filterNames);
never executed: return QAbstractFileEngine::entryList(filters, filterNames);
0
921}-
922-
923bool QResourceFileEngine::caseSensitive() const-
924{-
925 return
never executed: return true;
true;
never executed: return true;
0
926}-
927-
928QResourceFileEngine::QResourceFileEngine(const QString &file) :-
929 QAbstractFileEngine(*new QResourceFileEnginePrivate)-
930{-
931 QResourceFileEnginePrivate * const d = d_func();-
932 d->resource.setFileName(file);-
933 if(d->resource.isCompressed()
d->resource.isCompressed()Description
TRUEevaluated 663 times by 9 tests
Evaluated by:
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QIcon
  • tst_QImageReader
  • tst_QKeySequence
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_Selftests
  • tst_rcc
FALSEevaluated 44011 times by 112 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
&& d->resource.size()
d->resource.size()Description
TRUEevaluated 663 times by 9 tests
Evaluated by:
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QIcon
  • tst_QImageReader
  • tst_QKeySequence
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_Selftests
  • tst_rcc
FALSEnever evaluated
) {
0-44011
934-
935 d->uncompressed = qUncompress(d->resource.data(), d->resource.size());-
936-
937-
938-
939 }
executed 663 times by 9 tests: end of block
Executed by:
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QIcon
  • tst_QImageReader
  • tst_QKeySequence
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_Selftests
  • tst_rcc
663
940}
executed 44674 times by 112 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QApplication
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDirIterator
  • tst_QDnsLookup_Appless
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • tst_QFile
  • ...
44674
941-
942QResourceFileEngine::~QResourceFileEngine()-
943{-
944}-
945-
946void QResourceFileEngine::setFileName(const QString &file)-
947{-
948 QResourceFileEnginePrivate * const d = d_func();-
949 d->resource.setFileName(file);-
950}
executed 174 times by 6 tests: end of block
Executed by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
174
951-
952bool QResourceFileEngine::open(QIODevice::OpenMode flags)-
953{-
954 QResourceFileEnginePrivate * const d = d_func();-
955 if (d->resource.fileName().isEmpty()
d->resource.fi...me().isEmpty()Description
TRUEnever evaluated
FALSEevaluated 12301 times by 82 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • ...
) {
0-12301
956 QMessageLogger(__FILE__, 1250, __PRETTY_FUNCTION__).warning("QResourceFileEngine::open: Missing file name");-
957 return
never executed: return false;
false;
never executed: return false;
0
958 }-
959 if(flags & QIODevice::WriteOnly
flags & QIODevice::WriteOnlyDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QSettings
FALSEevaluated 12298 times by 82 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • ...
)
3-12298
960 return
executed 3 times by 1 test: return false;
Executed by:
  • tst_QSettings
false;
executed 3 times by 1 test: return false;
Executed by:
  • tst_QSettings
3
961 if (!d->resource.isValid()
!d->resource.isValid()Description
TRUEevaluated 212 times by 7 tests
Evaluated by:
  • tst_QFile
  • tst_QImageReader
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_Selftests
FALSEevaluated 12086 times by 80 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • ...
) {
212-12086
962 d->errorString = qt_error_string(2);-
963 return
executed 212 times by 7 tests: return false;
Executed by:
  • tst_QFile
  • tst_QImageReader
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_Selftests
false;
executed 212 times by 7 tests: return false;
Executed by:
  • tst_QFile
  • tst_QImageReader
  • tst_QPlainTextEdit
  • tst_QTextBrowser
  • tst_QTextDocument
  • tst_QTextEdit
  • tst_Selftests
212
964 }-
965 return
executed 12086 times by 80 tests: return true;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • ...
true;
executed 12086 times by 80 tests: return true;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • ...
12086
966}-
967-
968bool QResourceFileEngine::close()-
969{-
970 QResourceFileEnginePrivate * const d = d_func();-
971 d->offset = 0;-
972 d->uncompressed.clear();-
973 return
executed 12086 times by 80 tests: return true;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • ...
true;
executed 12086 times by 80 tests: return true;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • ...
12086
974}-
975-
976bool QResourceFileEngine::flush()-
977{-
978 return
executed 12086 times by 80 tests: return true;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • ...
true;
executed 12086 times by 80 tests: return true;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • ...
12086
979}-
980-
981qint64 QResourceFileEngine::read(char *data, qint64 len)-
982{-
983 QResourceFileEnginePrivate * const d = d_func();-
984 if(len > size()-d->offset
len > size()-d->offsetDescription
TRUEevaluated 27845 times by 77 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsEffect
  • ...
FALSEevaluated 1709 times by 12 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QFileInfo
  • tst_QFontDialog
  • tst_QImageReader
  • tst_QKeySequence
  • tst_QMimeDatabase
  • tst_QRawFont
  • tst_QResourceEngine
  • tst_QStyle
  • tst_QWizard
  • tst_Selftests
  • tst_rcc
)
1709-27845
985 len = size()-d->offset;
executed 27845 times by 77 tests: len = size()-d->offset;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsEffect
  • ...
27845
986 if(len <= 0
len <= 0Description
TRUEevaluated 16479 times by 7 tests
Evaluated by:
  • tst_QFile
  • tst_QGraphicsScene
  • tst_QImageReader
  • tst_QMimeDatabase
  • tst_QMovie
  • tst_QNetworkReply
  • tst_QTemporaryFile
FALSEevaluated 13075 times by 80 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • ...
)
13075-16479
987 return
executed 16479 times by 7 tests: return 0;
Executed by:
  • tst_QFile
  • tst_QGraphicsScene
  • tst_QImageReader
  • tst_QMimeDatabase
  • tst_QMovie
  • tst_QNetworkReply
  • tst_QTemporaryFile
0;
executed 16479 times by 7 tests: return 0;
Executed by:
  • tst_QFile
  • tst_QGraphicsScene
  • tst_QImageReader
  • tst_QMimeDatabase
  • tst_QMovie
  • tst_QNetworkReply
  • tst_QTemporaryFile
16479
988 if(d->resource.isCompressed()
d->resource.isCompressed()Description
TRUEevaluated 1024 times by 8 tests
Evaluated by:
  • tst_QFileInfo
  • tst_QIcon
  • tst_QImageReader
  • tst_QKeySequence
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_Selftests
  • tst_rcc
FALSEevaluated 12051 times by 78 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsEffect
  • ...
)
1024-12051
989 memcpy(data, d->uncompressed.constData()+d->offset, len);
executed 1024 times by 8 tests: memcpy(data, d->uncompressed.constData()+d->offset, len);
Executed by:
  • tst_QFileInfo
  • tst_QIcon
  • tst_QImageReader
  • tst_QKeySequence
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_Selftests
  • tst_rcc
1024
990 else-
991 memcpy(data, d->resource.data()+d->offset, len);
executed 12051 times by 78 tests: memcpy(data, d->resource.data()+d->offset, len);
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsEffect
  • ...
12051
992 d->offset += len;-
993 return
executed 13075 times by 80 tests: return len;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • ...
len;
executed 13075 times by 80 tests: return len;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • ...
13075
994}-
995-
996qint64 QResourceFileEngine::write(const char *, qint64)-
997{-
998 return
never executed: return -1;
-1;
never executed: return -1;
0
999}-
1000-
1001bool QResourceFileEngine::remove()-
1002{-
1003 return
executed 1 time by 1 test: return false;
Executed by:
  • tst_QFile
false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_QFile
1
1004}-
1005-
1006bool QResourceFileEngine::copy(const QString &)-
1007{-
1008 return
executed 32 times by 3 tests: return false;
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QMimeDatabase
false;
executed 32 times by 3 tests: return false;
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QMimeDatabase
32
1009}-
1010-
1011bool QResourceFileEngine::rename(const QString &)-
1012{-
1013 return
executed 1 time by 1 test: return false;
Executed by:
  • tst_QFile
false;
executed 1 time by 1 test: return false;
Executed by:
  • tst_QFile
1
1014}-
1015-
1016bool QResourceFileEngine::link(const QString &)-
1017{-
1018 return
never executed: return false;
false;
never executed: return false;
0
1019}-
1020-
1021qint64 QResourceFileEngine::size() const-
1022{-
1023 const QResourceFileEnginePrivate * const d = d_func();-
1024 if(!d->resource.isValid()
!d->resource.isValid()Description
TRUEnever evaluated
FALSEevaluated 100438 times by 80 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • ...
)
0-100438
1025 return
never executed: return 0;
0;
never executed: return 0;
0
1026 if(d->resource.isCompressed()
d->resource.isCompressed()Description
TRUEevaluated 2231 times by 8 tests
Evaluated by:
  • tst_QFileInfo
  • tst_QIcon
  • tst_QImageReader
  • tst_QKeySequence
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_Selftests
  • tst_rcc
FALSEevaluated 98207 times by 79 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • ...
)
2231-98207
1027 return
executed 2231 times by 8 tests: return d->uncompressed.size();
Executed by:
  • tst_QFileInfo
  • tst_QIcon
  • tst_QImageReader
  • tst_QKeySequence
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_Selftests
  • tst_rcc
d->uncompressed.size();
executed 2231 times by 8 tests: return d->uncompressed.size();
Executed by:
  • tst_QFileInfo
  • tst_QIcon
  • tst_QImageReader
  • tst_QKeySequence
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_Selftests
  • tst_rcc
2231
1028 return
executed 98207 times by 79 tests: return d->resource.size();
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • ...
d->resource.size();
executed 98207 times by 79 tests: return d->resource.size();
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • ...
98207
1029}-
1030-
1031qint64 QResourceFileEngine::pos() const-
1032{-
1033 const QResourceFileEnginePrivate * const d = d_func();-
1034 return
never executed: return d->offset;
d->offset;
never executed: return d->offset;
0
1035}-
1036-
1037bool QResourceFileEngine::atEnd() const-
1038{-
1039 const QResourceFileEnginePrivate * const d = d_func();-
1040 if(!d->resource.isValid()
!d->resource.isValid()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1041 return
never executed: return true;
true;
never executed: return true;
0
1042 return
never executed: return d->offset == size();
d->offset == size();
never executed: return d->offset == size();
0
1043}-
1044-
1045bool QResourceFileEngine::seek(qint64 pos)-
1046{-
1047 QResourceFileEnginePrivate * const d = d_func();-
1048 if(!d->resource.isValid()
!d->resource.isValid()Description
TRUEnever evaluated
FALSEevaluated 10388 times by 68 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • ...
)
0-10388
1049 return
never executed: return false;
false;
never executed: return false;
0
1050-
1051 if(d->offset > size()
d->offset > size()Description
TRUEnever evaluated
FALSEevaluated 10388 times by 68 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • ...
)
0-10388
1052 return
never executed: return false;
false;
never executed: return false;
0
1053 d->offset = pos;-
1054 return
executed 10388 times by 68 tests: return true;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • ...
true;
executed 10388 times by 68 tests: return true;
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsItem
  • tst_QGraphicsLinearLayout
  • ...
10388
1055}-
1056-
1057bool QResourceFileEngine::isSequential() const-
1058{-
1059 return
executed 52510 times by 80 tests: return false;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • ...
false;
executed 52510 times by 80 tests: return false;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • ...
52510
1060}-
1061-
1062QAbstractFileEngine::FileFlags QResourceFileEngine::fileFlags(QAbstractFileEngine::FileFlags type) const-
1063{-
1064 const QResourceFileEnginePrivate * const d = d_func();-
1065 QAbstractFileEngine::FileFlags ret = 0;-
1066 if(!d->resource.isValid()
!d->resource.isValid()Description
TRUEevaluated 4832 times by 59 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGlobal
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QIcon
  • ...
FALSEevaluated 1993 times by 46 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QKeySequence
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • ...
)
1993-4832
1067 return
executed 4832 times by 59 tests: return ret;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGlobal
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QIcon
  • ...
ret;
executed 4832 times by 59 tests: return ret;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QApplication
  • tst_QCalendarWidget
  • tst_QCommandLineParser
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusConnectionNoBus
  • tst_QDBusConnectionNoLibDBus1
  • tst_QDBusConnection_Delayed
  • tst_QDateTimeEdit
  • tst_QDir
  • tst_QDnsLookup_Appless
  • tst_QErrorMessage
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGlobal
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QIcon
  • ...
4832
1068-
1069 if(type & PermsMask
type & PermsMaskDescription
TRUEevaluated 117 times by 6 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QKeySequence
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QTranslator
FALSEevaluated 1876 times by 46 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QKeySequence
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • ...
)
117-1876
1070 ret |= QAbstractFileEngine::FileFlags(ReadOwnerPerm|ReadUserPerm|ReadGroupPerm|ReadOtherPerm);
executed 117 times by 6 tests: ret |= QAbstractFileEngine::FileFlags(ReadOwnerPerm|ReadUserPerm|ReadGroupPerm|ReadOtherPerm);
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QKeySequence
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QTranslator
117
1071 if(type & TypesMask
type & TypesMaskDescription
TRUEevaluated 1832 times by 42 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QKeySequence
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QMimeDatabase
  • ...
FALSEevaluated 161 times by 11 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QDir
  • tst_QFile
  • tst_QFileInfo
  • tst_QIcon
  • tst_QKeySequence
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QTemporaryFile
  • tst_QTranslator
  • tst_QWidget
) {
161-1832
1072 if(d->resource.isDir()
d->resource.isDir()Description
TRUEevaluated 282 times by 7 tests
Evaluated by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QIcon
  • tst_QResourceEngine
  • tst_rcc
FALSEevaluated 1550 times by 42 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QKeySequence
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QMimeDatabase
  • ...
)
282-1550
1073 ret |= DirectoryType;
executed 282 times by 7 tests: ret |= DirectoryType;
Executed by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QIcon
  • tst_QResourceEngine
  • tst_rcc
282
1074 else-
1075 ret |= FileType;
executed 1550 times by 42 tests: ret |= FileType;
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QKeySequence
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QMimeDatabase
  • ...
1550
1076 }-
1077 if(type & FlagsMask
type & FlagsMaskDescription
TRUEevaluated 1806 times by 46 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QKeySequence
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • ...
FALSEevaluated 187 times by 8 tests
Evaluated by:
  • tst_QDirIterator
  • tst_QFile
  • tst_QFileInfo
  • tst_QKeySequence
  • tst_QMimeDatabase
  • tst_QResourceEngine
  • tst_QTranslator
  • tst_rcc
) {
187-1806
1078 ret |= ExistsFlag;-
1079 if(d->resource.absoluteFilePath() == QLatin1String(":/")
d->resource.ab...n1String(":/")Description
TRUEevaluated 4 times by 3 tests
Evaluated by:
  • tst_QDir
  • tst_QFileInfo
  • tst_QResourceEngine
FALSEevaluated 1802 times by 46 tests
Evaluated by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QKeySequence
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • ...
)
4-1802
1080 ret |= RootFlag;
executed 4 times by 3 tests: ret |= RootFlag;
Executed by:
  • tst_QDir
  • tst_QFileInfo
  • tst_QResourceEngine
4
1081 }
executed 1806 times by 46 tests: end of block
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QKeySequence
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • ...
1806
1082 return
executed 1993 times by 46 tests: return ret;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QKeySequence
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • ...
ret;
executed 1993 times by 46 tests: return ret;
Executed by:
  • tst_QAbstractFileEngine
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDir
  • tst_QDirIterator
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSelector
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QFontMetrics
  • tst_QGlyphRun
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QKeySequence
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • ...
1993
1083}-
1084-
1085bool QResourceFileEngine::setPermissions(uint)-
1086{-
1087 return
never executed: return false;
false;
never executed: return false;
0
1088}-
1089-
1090QString QResourceFileEngine::fileName(FileName file) const-
1091{-
1092 const QResourceFileEnginePrivate * const d = d_func();-
1093 if(file == BaseName
file == BaseNameDescription
TRUEnever evaluated
FALSEevaluated 21154 times by 70 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • ...
) {
0-21154
1094 int slash = d->resource.fileName().lastIndexOf(QLatin1Char('/'));-
1095 if (slash == -1
slash == -1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1096 return
never executed: return d->resource.fileName();
d->resource.fileName();
never executed: return d->resource.fileName();
0
1097 return
never executed: return d->resource.fileName().mid(slash + 1);
d->resource.fileName().mid(slash + 1);
never executed: return d->resource.fileName().mid(slash + 1);
0
1098 } else if(file == PathName
file == PathNameDescription
TRUEnever evaluated
FALSEevaluated 21154 times by 70 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileInfo
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • ...
|| file == AbsolutePathName
file == AbsolutePathNameDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEevaluated 21153 times by 69 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsItem
  • ...
) {
0-21154
1099 const QString path = (
(file == AbsolutePathName)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEnever evaluated
file == AbsolutePathName)
(file == AbsolutePathName)Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
FALSEnever evaluated
? d->resource.absoluteFilePath() : d->resource.fileName();
0-1
1100 const int slash = path.lastIndexOf(QLatin1Char('/'));-
1101 if (slash == -1
slash == -1Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
)
0-1
1102 return
never executed: return QLatin1String(":");
QLatin1String(":");
never executed: return QLatin1String(":");
0
1103 else if (slash <= 1
slash <= 1Description
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFileInfo
)
0-1
1104 return
never executed: return QLatin1String(":/");
QLatin1String(":/");
never executed: return QLatin1String(":/");
0
1105 return
executed 1 time by 1 test: return path.left(slash);
Executed by:
  • tst_QFileInfo
path.left(slash);
executed 1 time by 1 test: return path.left(slash);
Executed by:
  • tst_QFileInfo
1
1106-
1107 } else if(file == CanonicalName
file == CanonicalNameDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDir
FALSEevaluated 21152 times by 69 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsItem
  • ...
|| file == CanonicalPathName
file == CanonicalPathNameDescription
TRUEnever evaluated
FALSEevaluated 21152 times by 69 tests
Evaluated by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsItem
  • ...
) {
0-21152
1108 const QString absoluteFilePath = d->resource.absoluteFilePath();-
1109 if(file == CanonicalPathName
file == CanonicalPathNameDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QDir
) {
0-1
1110 const int slash = absoluteFilePath.lastIndexOf(QLatin1Char('/'));-
1111 if (slash != -1
slash != -1Description
TRUEnever evaluated
FALSEnever evaluated
)
0
1112 return
never executed: return absoluteFilePath.left(slash);
absoluteFilePath.left(slash);
never executed: return absoluteFilePath.left(slash);
0
1113 }
never executed: end of block
0
1114 return
executed 1 time by 1 test: return absoluteFilePath;
Executed by:
  • tst_QDir
absoluteFilePath;
executed 1 time by 1 test: return absoluteFilePath;
Executed by:
  • tst_QDir
1
1115 }-
1116 return
executed 21152 times by 69 tests: return d->resource.fileName();
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsItem
  • ...
d->resource.fileName();
executed 21152 times by 69 tests: return d->resource.fileName();
Executed by:
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDir
  • tst_QDoubleSpinBox
  • tst_QFile
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFocusEvent
  • tst_QFontComboBox
  • tst_QFontDialog
  • tst_QGraphicsEffect
  • tst_QGraphicsEffectSource
  • tst_QGraphicsItem
  • ...
21152
1117}-
1118-
1119bool QResourceFileEngine::isRelativePath() const-
1120{-
1121 return
executed 14 times by 5 tests: return false;
Executed by:
  • tst_QDir
  • tst_QGuiApplication
  • tst_QKeySequence
  • tst_QTextBrowser
  • tst_QTranslator
false;
executed 14 times by 5 tests: return false;
Executed by:
  • tst_QDir
  • tst_QGuiApplication
  • tst_QKeySequence
  • tst_QTextBrowser
  • tst_QTranslator
14
1122}-
1123-
1124uint QResourceFileEngine::ownerId(FileOwner) const-
1125{-
1126 static const uint nobodyID = (uint) -2;-
1127 return
never executed: return nobodyID;
nobodyID;
never executed: return nobodyID;
0
1128}-
1129-
1130QString QResourceFileEngine::owner(FileOwner) const-
1131{-
1132 return
never executed: return QString();
QString();
never executed: return QString();
0
1133}-
1134-
1135QDateTime QResourceFileEngine::fileTime(FileTime) const-
1136{-
1137 return
executed 1007 times by 29 tests: return QDateTime();
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • ...
QDateTime();
executed 1007 times by 29 tests: return QDateTime();
Executed by:
  • tst_QAbstractItemView
  • tst_QAccessibility
  • tst_QButtonGroup
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QFileDialog2
  • tst_QFileIconProvider
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFontDialog
  • tst_QGraphicsProxyWidget
  • tst_QGraphicsScene
  • tst_QGroupBox
  • tst_QIcon
  • tst_QLineEdit
  • tst_QMdiSubWindow
  • tst_QMessageBox
  • tst_QNetworkReply
  • tst_QPixmap
  • tst_QPrinter
  • tst_QSettings
  • tst_QSidebar
  • tst_QStyle
  • tst_QStyleSheetStyle
  • tst_QTextBrowser
  • ...
1007
1138}-
1139-
1140-
1141-
1142-
1143QAbstractFileEngine::Iterator *QResourceFileEngine::beginEntryList(QDir::Filters filters,-
1144 const QStringList &filterNames)-
1145{-
1146 return
executed 174 times by 6 tests: return new QResourceFileEngineIterator(filters, filterNames);
Executed by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
new QResourceFileEngineIterator(filters, filterNames);
executed 174 times by 6 tests: return new QResourceFileEngineIterator(filters, filterNames);
Executed by:
  • tst_QDir
  • tst_QDirIterator
  • tst_QFileInfo
  • tst_QResourceEngine
  • tst_QVariant
  • tst_rcc
174
1147}-
1148-
1149-
1150-
1151-
1152QAbstractFileEngine::Iterator *QResourceFileEngine::endEntryList()-
1153{-
1154 return
never executed: return 0;
0;
never executed: return 0;
0
1155}-
1156-
1157bool QResourceFileEngine::extension(Extension extension, const ExtensionOption *option, ExtensionReturn *output)-
1158{-
1159 QResourceFileEnginePrivate * const d = d_func();-
1160 if (extension == MapExtension
extension == MapExtensionDescription
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QFile
  • tst_QIcon
FALSEevaluated 9 times by 1 test
Evaluated by:
  • tst_QFile
) {
9-10
1161 const MapExtensionOption *options = (const MapExtensionOption*)(option);-
1162 MapExtensionReturn *returnValue = static_cast<MapExtensionReturn*>(output);-
1163 returnValue->address = d->map(options->offset, options->size, options->flags);-
1164 return
executed 10 times by 2 tests: return (returnValue->address != 0);
Executed by:
  • tst_QFile
  • tst_QIcon
(returnValue->address != 0);
executed 10 times by 2 tests: return (returnValue->address != 0);
Executed by:
  • tst_QFile
  • tst_QIcon
10
1165 }-
1166 if (extension == UnMapExtension
extension == UnMapExtensionDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_QFile
FALSEnever evaluated
) {
0-9
1167 const UnMapExtensionOption *options = (const UnMapExtensionOption*)option;-
1168 return
executed 9 times by 1 test: return d->unmap(options->address);
Executed by:
  • tst_QFile
d->unmap(options->address);
executed 9 times by 1 test: return d->unmap(options->address);
Executed by:
  • tst_QFile
9
1169 }-
1170 return
never executed: return false;
false;
never executed: return false;
0
1171}-
1172-
1173bool QResourceFileEngine::supportsExtension(Extension extension) const-
1174{-
1175 return
executed 320 times by 6 tests: return (extension == UnMapExtension || extension == MapExtension);
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QIcon
  • tst_QImageReader
  • tst_QMimeDatabase
  • tst_QNetworkReply
(extension == UnMapExtension
extension == UnMapExtensionDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_QFile
FALSEevaluated 311 times by 6 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QIcon
  • tst_QImageReader
  • tst_QMimeDatabase
  • tst_QNetworkReply
|| extension == MapExtension
extension == MapExtensionDescription
TRUEevaluated 10 times by 2 tests
Evaluated by:
  • tst_QFile
  • tst_QIcon
FALSEevaluated 301 times by 5 tests
Evaluated by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QImageReader
  • tst_QMimeDatabase
  • tst_QNetworkReply
);
executed 320 times by 6 tests: return (extension == UnMapExtension || extension == MapExtension);
Executed by:
  • tst_QFile
  • tst_QFileInfo
  • tst_QIcon
  • tst_QImageReader
  • tst_QMimeDatabase
  • tst_QNetworkReply
9-320
1176}-
1177-
1178uchar *QResourceFileEnginePrivate::map(qint64 offset, qint64 size, QFile::MemoryMapFlags flags)-
1179{-
1180 QResourceFileEngine * const q = q_func();-
1181 (void)flags;;-
1182 if (offset < 0
offset < 0Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QFile
FALSEevaluated 8 times by 2 tests
Evaluated by:
  • tst_QFile
  • tst_QIcon
|| size <= 0
size <= 0Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QFile
FALSEevaluated 4 times by 2 tests
Evaluated by:
  • tst_QFile
  • tst_QIcon
|| !resource.isValid()
!resource.isValid()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFile
FALSEevaluated 3 times by 2 tests
Evaluated by:
  • tst_QFile
  • tst_QIcon
|| offset + size > resource.size()
offset + size ...esource.size()Description
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QFile
FALSEevaluated 2 times by 2 tests
Evaluated by:
  • tst_QFile
  • tst_QIcon
) {
1-8
1183 q->setError(QFile::UnspecifiedError, QString());-
1184 return
executed 8 times by 1 test: return 0;
Executed by:
  • tst_QFile
0;
executed 8 times by 1 test: return 0;
Executed by:
  • tst_QFile
8
1185 }-
1186 uchar *address = const_cast<uchar *>(resource.data());-
1187 return
executed 2 times by 2 tests: return (address + offset);
Executed by:
  • tst_QFile
  • tst_QIcon
(address + offset);
executed 2 times by 2 tests: return (address + offset);
Executed by:
  • tst_QFile
  • tst_QIcon
2
1188}-
1189-
1190bool QResourceFileEnginePrivate::unmap(uchar *ptr)-
1191{-
1192 (void)ptr;;-
1193 return
executed 9 times by 1 test: return true;
Executed by:
  • tst_QFile
true;
executed 9 times by 1 test: return true;
Executed by:
  • tst_QFile
9
1194}-
1195-
1196-
Switch to Source codePreprocessed file

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