| Line | Source Code | Coverage |
|---|
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | static QFactoryLoader *loader() { static QGlobalStatic<QFactoryLoader > thisGlobalStatic = { { (0) }, false }; if (!thisGlobalStatic.pointer.load() && !thisGlobalStatic.destroyed) { QFactoryLoader *x = new QFactoryLoader ("org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.1", QLatin1String("/platforms"), Qt::CaseInsensitive); if (!thisGlobalStatic.pointer.testAndSetOrdered(0, x)) delete x; else static QGlobalStaticDeleter<QFactoryLoader > cleanup(thisGlobalStatic); } return thisGlobalStatic.pointer.load(); } never executed: delete x; executed: return thisGlobalStatic.pointer.load();Execution Count:289 partially evaluated: !thisGlobalStatic.pointer.testAndSetOrdered(0, x)| no Evaluation Count:0 | yes Evaluation Count:187 |
evaluated: !thisGlobalStatic.pointer.load()| yes Evaluation Count:187 | yes Evaluation Count:102 |
partially evaluated: !thisGlobalStatic.destroyed| yes Evaluation Count:187 | no Evaluation Count:0 |
| 0-289 |
| 7 | | - |
| 8 | static QFactoryLoader *directLoader() { static QGlobalStatic<QFactoryLoader > thisGlobalStatic = { { (0) }, false }; if (!thisGlobalStatic.pointer.load() && !thisGlobalStatic.destroyed) { QFactoryLoader *x = new QFactoryLoader ("org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.1", QLatin1String(""), Qt::CaseInsensitive); if (!thisGlobalStatic.pointer.testAndSetOrdered(0, x)) delete x; else static QGlobalStaticDeleter<QFactoryLoader > cleanup(thisGlobalStatic); } return thisGlobalStatic.pointer.load(); } never evaluated: !thisGlobalStatic.pointer.testAndSetOrdered(0, x) never executed: delete x; never evaluated: !thisGlobalStatic.pointer.load() never evaluated: !thisGlobalStatic.destroyed never executed: return thisGlobalStatic.pointer.load(); | 0 |
| 9 | | - |
| 10 | | - |
| 11 | | - |
| 12 | QPlatformIntegration *QPlatformIntegrationFactory::create(const QString &platform, const QStringList ¶mList, const QString &platformPluginPath) | - |
| 13 | { | - |
| 14 | | - |
| 15 | | - |
| 16 | if (!platformPluginPath.isEmpty()) { partially evaluated: !platformPluginPath.isEmpty()| no Evaluation Count:0 | yes Evaluation Count:289 |
| 0-289 |
| 17 | QCoreApplication::addLibraryPath(platformPluginPath); | - |
| 18 | if (QPlatformIntegration *ret = qLoadPlugin1<QPlatformIntegration, QPlatformIntegrationPlugin>(directLoader(), platform, paramList)) never evaluated: QPlatformIntegration *ret = qLoadPlugin1<QPlatformIntegration, QPlatformIntegrationPlugin>(directLoader(), platform, paramList) | 0 |
| 19 | return ret; never executed: return ret; | 0 |
| 20 | } | 0 |
| 21 | if (QPlatformIntegration *ret = qLoadPlugin1<QPlatformIntegration, QPlatformIntegrationPlugin>(loader(), platform, paramList)) partially evaluated: QPlatformIntegration *ret = qLoadPlugin1<QPlatformIntegration, QPlatformIntegrationPlugin>(loader(), platform, paramList)| yes Evaluation Count:289 | no Evaluation Count:0 |
| 0-289 |
| 22 | return ret; executed: return ret;Execution Count:289 | 289 |
| 23 | | - |
| 24 | return 0; never executed: return 0; | 0 |
| 25 | } | - |
| 26 | QStringList QPlatformIntegrationFactory::keys(const QString &platformPluginPath) | - |
| 27 | { | - |
| 28 | | - |
| 29 | QStringList list; | - |
| 30 | if (!platformPluginPath.isEmpty()) { never evaluated: !platformPluginPath.isEmpty() | 0 |
| 31 | QCoreApplication::addLibraryPath(platformPluginPath); | - |
| 32 | list = directLoader()->keyMap().values(); | - |
| 33 | if (!list.isEmpty()) { never evaluated: !list.isEmpty() | 0 |
| 34 | const QString postFix = QString::fromUtf8("" " (from " "", sizeof(" (from ") - 1) | - |
| 35 | + QDir::toNativeSeparators(platformPluginPath) | - |
| 36 | + QLatin1Char(')'); | - |
| 37 | const QStringList::iterator end = list.end(); | - |
| 38 | for (QStringList::iterator it = list.begin(); it != end; ++it) never evaluated: it != end | 0 |
| 39 | (*it).append(postFix); never executed: (*it).append(postFix); | 0 |
| 40 | } | 0 |
| 41 | } | 0 |
| 42 | list.append(loader()->keyMap().values()); | - |
| 43 | return list; never executed: return list; | 0 |
| 44 | | - |
| 45 | | - |
| 46 | | - |
| 47 | } | - |
| 48 | | - |
| 49 | | - |
| 50 | | - |
| | |