qpluginloader.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/plugin/qpluginloader.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6QPluginLoader::QPluginLoader(QObject *parent)-
7 : QObject(parent), d(0), did_load(false)-
8{-
9}
executed 7 times by 1 test: end of block
Executed by:
  • tst_QPluginLoader
7
10QPluginLoader::QPluginLoader(const QString &fileName, QObject *parent)-
11 : QObject(parent), d(0), did_load(false)-
12{-
13 setFileName(fileName);-
14 setLoadHints(QLibrary::PreventUnloadHint);-
15}
executed 21 times by 2 tests: end of block
Executed by:
  • tst_QPlugin
  • tst_QPluginLoader
21
16QPluginLoader::~QPluginLoader()-
17{-
18 if (d
dDescription
TRUEevaluated 27 times by 2 tests
Evaluated by:
  • tst_QPlugin
  • tst_QPluginLoader
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QPluginLoader
)
1-27
19 d->release();
executed 27 times by 2 tests: d->release();
Executed by:
  • tst_QPlugin
  • tst_QPluginLoader
27
20}
executed 28 times by 2 tests: end of block
Executed by:
  • tst_QPlugin
  • tst_QPluginLoader
28
21QObject *QPluginLoader::instance()-
22{-
23 if (!isLoaded()
!isLoaded()Description
TRUEevaluated 5 times by 1 test
Evaluated by:
  • tst_QPluginLoader
FALSEevaluated 16 times by 2 tests
Evaluated by:
  • tst_QPlugin
  • tst_QPluginLoader
&& !load()
!load()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QPluginLoader
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QPluginLoader
)
1-16
24 return
executed 4 times by 1 test: return 0;
Executed by:
  • tst_QPluginLoader
0;
executed 4 times by 1 test: return 0;
Executed by:
  • tst_QPluginLoader
4
25 if (!d->inst
!d->instDescription
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • tst_QPlugin
  • tst_QPluginLoader
FALSEevaluated 8 times by 1 test
Evaluated by:
  • tst_QPluginLoader
&& d->instance
d->instanceDescription
TRUEevaluated 9 times by 2 tests
Evaluated by:
  • tst_QPlugin
  • tst_QPluginLoader
FALSEnever evaluated
)
0-9
26 d->inst = d->instance();
executed 9 times by 2 tests: d->inst = d->instance();
Executed by:
  • tst_QPlugin
  • tst_QPluginLoader
9
27 return
executed 17 times by 2 tests: return d->inst.data();
Executed by:
  • tst_QPlugin
  • tst_QPluginLoader
d->inst.data();
executed 17 times by 2 tests: return d->inst.data();
Executed by:
  • tst_QPlugin
  • tst_QPluginLoader
17
28}-
29QJsonObject QPluginLoader::metaData() const-
30{-
31 if (!d
!dDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
32 return
never executed: return QJsonObject();
QJsonObject();
never executed: return QJsonObject();
0
33 return
never executed: return d->metaData;
d->metaData;
never executed: return d->metaData;
0
34}-
35bool QPluginLoader::load()-
36{-
37 if (!d
!dDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QPluginLoader
FALSEevaluated 27 times by 2 tests
Evaluated by:
  • tst_QPlugin
  • tst_QPluginLoader
|| d->fileName.isEmpty()
d->fileName.isEmpty()Description
TRUEevaluated 4 times by 1 test
Evaluated by:
  • tst_QPluginLoader
FALSEevaluated 23 times by 2 tests
Evaluated by:
  • tst_QPlugin
  • tst_QPluginLoader
)
2-27
38 return
executed 6 times by 1 test: return false;
Executed by:
  • tst_QPluginLoader
false;
executed 6 times by 1 test: return false;
Executed by:
  • tst_QPluginLoader
6
39 if (did_load
did_loadDescription
TRUEnever evaluated
FALSEevaluated 23 times by 2 tests
Evaluated by:
  • tst_QPlugin
  • tst_QPluginLoader
)
0-23
40 return
never executed: return d->pHnd && d->instance;
d->pHnd
d->pHndDescription
TRUEnever evaluated
FALSEnever evaluated
&& d->instance
d->instanceDescription
TRUEnever evaluated
FALSEnever evaluated
;
never executed: return d->pHnd && d->instance;
0
41 if (!d->isPlugin()
!d->isPlugin()Description
TRUEevaluated 12 times by 1 test
Evaluated by:
  • tst_QPluginLoader
FALSEevaluated 11 times by 2 tests
Evaluated by:
  • tst_QPlugin
  • tst_QPluginLoader
)
11-12
42 return
executed 12 times by 1 test: return false;
Executed by:
  • tst_QPluginLoader
false;
executed 12 times by 1 test: return false;
Executed by:
  • tst_QPluginLoader
12
43 did_load = true;-
44 return
executed 11 times by 2 tests: return d->loadPlugin();
Executed by:
  • tst_QPlugin
  • tst_QPluginLoader
d->loadPlugin();
executed 11 times by 2 tests: return d->loadPlugin();
Executed by:
  • tst_QPlugin
  • tst_QPluginLoader
11
45}-
46bool QPluginLoader::unload()-
47{-
48 if (did_load
did_loadDescription
TRUEevaluated 9 times by 1 test
Evaluated by:
  • tst_QPluginLoader
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QPluginLoader
) {
4-9
49 did_load = false;-
50 return
executed 9 times by 1 test: return d->unload();
Executed by:
  • tst_QPluginLoader
d->unload();
executed 9 times by 1 test: return d->unload();
Executed by:
  • tst_QPluginLoader
9
51 }-
52 if (d
dDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QPluginLoader
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QPluginLoader
)
1-3
53 d->errorString = tr("The plugin was not loaded.");
executed 3 times by 1 test: d->errorString = tr("The plugin was not loaded.");
Executed by:
  • tst_QPluginLoader
3
54 return
executed 4 times by 1 test: return false;
Executed by:
  • tst_QPluginLoader
false;
executed 4 times by 1 test: return false;
Executed by:
  • tst_QPluginLoader
4
55}-
56-
57-
58-
59-
60-
61-
62bool QPluginLoader::isLoaded() const-
63{-
64 return
executed 22 times by 2 tests: return d && d->pHnd && d->instance;
Executed by:
  • tst_QPlugin
  • tst_QPluginLoader
d
dDescription
TRUEevaluated 21 times by 2 tests
Evaluated by:
  • tst_QPlugin
  • tst_QPluginLoader
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QPluginLoader
&& d->pHnd
d->pHndDescription
TRUEevaluated 17 times by 2 tests
Evaluated by:
  • tst_QPlugin
  • tst_QPluginLoader
FALSEevaluated 4 times by 1 test
Evaluated by:
  • tst_QPluginLoader
&& d->instance
d->instanceDescription
TRUEevaluated 17 times by 2 tests
Evaluated by:
  • tst_QPlugin
  • tst_QPluginLoader
FALSEnever evaluated
;
executed 22 times by 2 tests: return d && d->pHnd && d->instance;
Executed by:
  • tst_QPlugin
  • tst_QPluginLoader
0-22
65}-
66-
67-
68static QString locatePlugin(const QString& fileName)-
69{-
70 const bool isAbsolute = QDir::isAbsolutePath(fileName);-
71 if (isAbsolute
isAbsoluteDescription
TRUEevaluated 24 times by 2 tests
Evaluated by:
  • tst_QPlugin
  • tst_QPluginLoader
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QPluginLoader
) {
3-24
72 QFileInfo fi(fileName);-
73 if (fi.isFile()
fi.isFile()Description
TRUEevaluated 23 times by 2 tests
Evaluated by:
  • tst_QPlugin
  • tst_QPluginLoader
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QPluginLoader
) {
1-23
74 return
executed 23 times by 2 tests: return fi.canonicalFilePath();
Executed by:
  • tst_QPlugin
  • tst_QPluginLoader
fi.canonicalFilePath();
executed 23 times by 2 tests: return fi.canonicalFilePath();
Executed by:
  • tst_QPlugin
  • tst_QPluginLoader
23
75 }-
76 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QPluginLoader
1
77 QStringList prefixes = QLibraryPrivate::prefixes_sys();-
78 prefixes.prepend(QString());-
79 QStringList suffixes = QLibraryPrivate::suffixes_sys(QString());-
80 suffixes.prepend(QString());-
81-
82-
83 const int slash = fileName.lastIndexOf(QLatin1Char('/'));-
84 const QStringRef baseName = fileName.midRef(slash + 1);-
85 const QStringRef basePath = isAbsolute
isAbsoluteDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QPluginLoader
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QPluginLoader
? QStringRef() : fileName.leftRef(slash + 1);
1-3
86-
87 const bool debug = qt_debug_component();-
88-
89 QStringList paths;-
90 if (isAbsolute
isAbsoluteDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QPluginLoader
FALSEevaluated 3 times by 1 test
Evaluated by:
  • tst_QPluginLoader
) {
1-3
91 paths.append(fileName.left(slash));-
92 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QPluginLoader
else {
1
93 paths = QCoreApplication::libraryPaths();-
94 paths.prepend(([]() -> QString { enum { Size = sizeof(u"" ".")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "." }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
executed 3 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QPluginLoader
qstring_literal_temp;
executed 3 times by 1 test: return qstring_literal_temp;
Executed by:
  • tst_QPluginLoader
}()));
3
95 }
executed 3 times by 1 test: end of block
Executed by:
  • tst_QPluginLoader
3
96-
97 for (QForeachContainer<typename QtPrivate::remove_reference<decltype(paths)>::type> _container_((paths)); _container_.control && _container_.i != _container_.e; ++_container_.i, _container_.control ^= 1) for (const QString &path = *_container_.i; _container_.control; _container_.control = 0) {-
98 for (QForeachContainer<typename QtPrivate::remove_reference<decltype(prefixes)>::type> _container_((prefixes)); _container_.control && _container_.i != _container_.e; ++_container_.i, _container_.control ^= 1) for (const QString &prefix = *_container_.i; _container_.control; _container_.control = 0) {-
99 for (QForeachContainer<typename QtPrivate::remove_reference<decltype(suffixes)>::type> _container_((suffixes)); _container_.control && _container_.i != _container_.e; ++_container_.i, _container_.control ^= 1) for (const QString &suffix = *_container_.i; _container_.control; _container_.control = 0) {-
100 const QString fn = path + QLatin1Char('/') + basePath + prefix + baseName + suffix;-
101 if (debug
debugDescription
TRUEnever evaluated
FALSEevaluated 36 times by 1 test
Evaluated by:
  • tst_QPluginLoader
)
0-36
102 QMessageLogger(__FILE__, 309, __PRETTY_FUNCTION__).debug() << "Trying..." << fn;
never executed: QMessageLogger(__FILE__, 309, __PRETTY_FUNCTION__).debug() << "Trying..." << fn;
0
103 if (QFileInfo(fn).isFile()
QFileInfo(fn).isFile()Description
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QPluginLoader
FALSEevaluated 34 times by 1 test
Evaluated by:
  • tst_QPluginLoader
)
2-34
104 return
executed 2 times by 1 test: return fn;
Executed by:
  • tst_QPluginLoader
fn;
executed 2 times by 1 test: return fn;
Executed by:
  • tst_QPluginLoader
2
105 }
executed 34 times by 1 test: end of block
Executed by:
  • tst_QPluginLoader
34
106 }
executed 16 times by 1 test: end of block
Executed by:
  • tst_QPluginLoader
16
107 }
executed 7 times by 1 test: end of block
Executed by:
  • tst_QPluginLoader
7
108 if (debug
debugDescription
TRUEnever evaluated
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QPluginLoader
)
0-2
109 QMessageLogger(__FILE__, 316, __PRETTY_FUNCTION__).debug() << fileName << "not found";
never executed: QMessageLogger(__FILE__, 316, __PRETTY_FUNCTION__).debug() << fileName << "not found";
0
110 return
executed 2 times by 1 test: return QString();
Executed by:
  • tst_QPluginLoader
QString();
executed 2 times by 1 test: return QString();
Executed by:
  • tst_QPluginLoader
2
111}-
112void QPluginLoader::setFileName(const QString &fileName)-
113{-
114-
115 QLibrary::LoadHints lh = QLibrary::PreventUnloadHint;-
116 if (d
dDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QPluginLoader
FALSEevaluated 26 times by 2 tests
Evaluated by:
  • tst_QPlugin
  • tst_QPluginLoader
) {
1-26
117 lh = d->loadHints();-
118 d->release();-
119 d = 0;-
120 did_load = false;-
121 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QPluginLoader
1
122-
123 const QString fn = locatePlugin(fileName);-
124-
125 d = QLibraryPrivate::findOrCreate(fn, QString(), lh);-
126 if (!fn.isEmpty()
!fn.isEmpty()Description
TRUEevaluated 25 times by 2 tests
Evaluated by:
  • tst_QPlugin
  • tst_QPluginLoader
FALSEevaluated 2 times by 1 test
Evaluated by:
  • tst_QPluginLoader
)
2-25
127 d->updatePluginState();
executed 25 times by 2 tests: d->updatePluginState();
Executed by:
  • tst_QPlugin
  • tst_QPluginLoader
25
128}
executed 27 times by 2 tests: end of block
Executed by:
  • tst_QPlugin
  • tst_QPluginLoader
27
129-
130QString QPluginLoader::fileName() const-
131{-
132 if (d
dDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
133 return
never executed: return d->fileName;
d->fileName;
never executed: return d->fileName;
0
134 return
never executed: return QString();
QString();
never executed: return QString();
0
135}-
136-
137-
138-
139-
140-
141-
142QString QPluginLoader::errorString() const-
143{-
144 return
executed 26 times by 1 test: return (!d || d->errorString.isEmpty()) ? tr("Unknown error") : d->errorString;
Executed by:
  • tst_QPluginLoader
(!d
!dDescription
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QPluginLoader
FALSEevaluated 23 times by 1 test
Evaluated by:
  • tst_QPluginLoader
|| d->errorString.isEmpty()
d->errorString.isEmpty()Description
TRUEevaluated 3 times by 1 test
Evaluated by:
  • tst_QPluginLoader
FALSEevaluated 20 times by 1 test
Evaluated by:
  • tst_QPluginLoader
) ? tr("Unknown error") : d->errorString;
executed 26 times by 1 test: return (!d || d->errorString.isEmpty()) ? tr("Unknown error") : d->errorString;
Executed by:
  • tst_QPluginLoader
3-26
145}-
146-
147typedef QVector<QStaticPlugin> StaticPluginList;-
148namespace { namespace Q_QGS_staticPluginList { typedef StaticPluginList 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 267 times by 245 tests
Evaluated by:
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbrush - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qclipboard - unknown status
  • ...
FALSEnever evaluated
) guard.store(QtGlobalStatic::Destroyed);
executed 267 times by 245 tests: guard.store(QtGlobalStatic::Destroyed);
Executed by:
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbrush - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qclipboard - unknown status
  • ...
}
executed 267 times by 245 tests: end of block
Executed by:
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbrush - unknown status
  • tst_qbuttongroup - unknown status
  • tst_qcalendarwidget - unknown status
  • tst_qcheckbox - unknown status
  • tst_qclipboard - unknown status
  • ...
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; return
executed 40167 times by 146 tests: return &holder.value;
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • ...
&holder.value;
executed 40167 times by 146 tests: return &holder.value;
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • ...
} } } static QGlobalStatic<StaticPluginList, Q_QGS_staticPluginList::innerFunction, Q_QGS_staticPluginList::guard> staticPluginList;
0-40167
149void QPluginLoader::setLoadHints(QLibrary::LoadHints loadHints)-
150{-
151 if (!d
!dDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QPluginLoader
FALSEevaluated 22 times by 2 tests
Evaluated by:
  • tst_QPlugin
  • tst_QPluginLoader
) {
1-22
152 d = QLibraryPrivate::findOrCreate(QString());-
153 d->errorString.clear();-
154 }
executed 1 time by 1 test: end of block
Executed by:
  • tst_QPluginLoader
1
155 d->setLoadHints(loadHints);-
156}
executed 23 times by 2 tests: end of block
Executed by:
  • tst_QPlugin
  • tst_QPluginLoader
23
157-
158QLibrary::LoadHints QPluginLoader::loadHints() const-
159{-
160 return
executed 2 times by 1 test: return d ? d->loadHints() : QLibrary::LoadHints();
Executed by:
  • tst_QPluginLoader
d
dDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QPluginLoader
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QPluginLoader
? d->loadHints() : QLibrary::LoadHints();
executed 2 times by 1 test: return d ? d->loadHints() : QLibrary::LoadHints();
Executed by:
  • tst_QPluginLoader
1-2
161}-
162void __attribute__((visibility("default"))) qRegisterStaticPluginFunction(QStaticPlugin plugin)-
163{-
164 staticPluginList()->append(plugin);-
165}
executed 1 time by 1 test: end of block
Executed by:
  • tst_QGuiApplication
1
166-
167-
168-
169-
170-
171-
172QObjectList QPluginLoader::staticInstances()-
173{-
174 QObjectList instances;-
175 const StaticPluginList *plugins = staticPluginList();-
176 if (plugins
pluginsDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
177 const int numPlugins = plugins->size();-
178 instances.reserve(numPlugins);-
179 for (int i = 0; i < numPlugins
i < numPluginsDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i)
0
180 instances += plugins->at(i).instance();
never executed: instances += plugins->at(i).instance();
0
181 }
never executed: end of block
0
182 return
never executed: return instances;
instances;
never executed: return instances;
0
183}-
184QVector<QStaticPlugin> QPluginLoader::staticPlugins()-
185{-
186 StaticPluginList *plugins = staticPluginList();-
187 if (plugins
pluginsDescription
TRUEevaluated 40166 times by 146 tests
Evaluated by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • ...
FALSEnever evaluated
)
0-40166
188 return
executed 40166 times by 146 tests: return *plugins;
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • ...
*plugins;
executed 40166 times by 146 tests: return *plugins;
Executed by:
  • tst_Gestures
  • tst_NetworkSelfTest
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractScrollArea
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBrush
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QDataStream
  • tst_QDateTimeEdit
  • tst_QDialog
  • tst_QDockWidget
  • tst_QDoubleSpinBox
  • tst_QErrorMessage
  • ...
40166
189 return
never executed: return QVector<QStaticPlugin>();
QVector<QStaticPlugin>();
never executed: return QVector<QStaticPlugin>();
0
190}-
191-
192-
193-
194-
195-
196-
197QJsonObject QStaticPlugin::metaData() const-
198{-
199 return
executed 26 times by 1 test: return QLibraryPrivate::fromRawMetaData(rawMetaData()).object();
Executed by:
  • tst_QGuiApplication
QLibraryPrivate::fromRawMetaData(rawMetaData()).object();
executed 26 times by 1 test: return QLibraryPrivate::fromRawMetaData(rawMetaData()).object();
Executed by:
  • tst_QGuiApplication
26
200}-
201-
202-
Switch to Source codePreprocessed file

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