OpenCoverage

Qt Quick Test Coverage

Function Tree

Path:<top>::QQmlImportsPrivate
Functionâ–ľCondition %eLOC - Effective Lines of CodeMcCabe - Cyclomatic Complexity
~QQmlImportsPrivate
Name: QQmlImportsPrivate::~QQmlImportsPrivate
Prototype: QQmlImportsPrivate::~QQmlImportsPrivate()
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 983-987
100.000% (4/4)
22
validateQmldirVersion
Name: QQmlImportsPrivate::validateQmldirVersion
Prototype: bool QQmlImportsPrivate::validateQmldirVersion(const QQmlTypeLoaderQmldirContent &qmldir, const QString &uri, int vmaj, int vmin, QList<QQmlError> *errors)
Coverage:  47.368% (18/38)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 1340-1402
 47.368% (18/38)
4410
updateQmldirContent
Name: QQmlImportsPrivate::updateQmldirContent
Prototype: bool QQmlImportsPrivate::updateQmldirContent(const QString &uri, const QString &prefix, const QString &qmldirIdentifier, const QString& qmldirUrl, QQmlImportDatabase *database, QList<QQmlError> *errors)
Coverage:  46.341% (19/41)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 1598-1645
 46.341% (19/41)
2912
resolvedUri
Name: QQmlImportsPrivate::resolvedUri
Prototype: QString QQmlImportsPrivate::resolvedUri(const QString &dir_arg, QQmlImportDatabase *database)
Coverage:  78.947% (15/19)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 1227-1260
 78.947% (15/19)
207
resolveType
Name: QQmlImportsPrivate::resolveType
Prototype: bool QQmlImportsPrivate::resolveType(const QHashedStringRef& type, int *vmajor, int *vminor, QQmlType *type_return, QList<QQmlError> *errors, QQmlType::RegistrationType registrationType, QQmlImport::RecursionRestriction recursionRestriction)
Coverage:  76.471% (26/34)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 859-902
 76.471% (26/34)
289
populatePluginPairVector
Name: QQmlImportsPrivate::populatePluginPairVector
Prototype: bool QQmlImportsPrivate::populatePluginPairVector(QVector<StaticPluginPair> &result, const QString &uri, const QStringList &versionUris, const QString &qmldirPath, QList<QQmlError> *errors)
Coverage:  60.000% (9/15)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 1039-1067
 60.000% (9/15)
167
locateQmldir
Name: QQmlImportsPrivate::locateQmldir
Prototype: bool QQmlImportsPrivate::locateQmldir(const QString &uri, int vmaj, int vmin, QQmlImportDatabase *database, QString *outQmldirFilePath, QString *outQmldirPathUrl)
Coverage: 100.000% (23/23)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 1267-1338
100.000% (23/23)
458
importNamespace
Name: QQmlImportsPrivate::importNamespace
Prototype: QQmlImportNamespace *QQmlImportsPrivate::importNamespace(const QString &prefix) const
Coverage: 100.000% (8/8)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 1404-1421
100.000% (8/8)
93
importExtension
Name: QQmlImportsPrivate::importExtension
Prototype: bool QQmlImportsPrivate::importExtension(const QString &qmldirFilePath, const QString &uri, int vmaj, int vmin, QQmlImportDatabase *database, const QQmlTypeLoaderQmldirContent &qmldir, QList<QQmlError> *errors)
Coverage:  73.438% (47/64)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 1081-1201
 73.438% (47/64)
7023
getQmldirContent
Name: QQmlImportsPrivate::getQmldirContent
Prototype: bool QQmlImportsPrivate::getQmldirContent(const QString &qmldirIdentifier, const QString &uri, QQmlTypeLoaderQmldirContent *qmldir, QList<QQmlError> *errors)
Coverage:  90.000% (9/10)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 1203-1225
 90.000% (9/10)
134
findQualifiedNamespace
Name: QQmlImportsPrivate::findQualifiedNamespace
Prototype: QQmlImportNamespace *QQmlImportsPrivate::findQualifiedNamespace(const QHashedStringRef &prefix) const
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 989-996
100.000% (7/7)
43
addLibraryImport
Name: QQmlImportsPrivate::addLibraryImport
Prototype: bool QQmlImportsPrivate::addLibraryImport(const QString& uri, const QString &prefix, int vmaj, int vmin, const QString &qmldirIdentifier, const QString &qmldirUrl, bool incomplete, QQmlImportDatabase *database, QList<QQmlError> *errors)
Coverage:  73.333% (33/45)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 1448-1497
 73.333% (33/45)
2812
addImportToNamespace
Name: QQmlImportsPrivate::addImportToNamespace
Prototype: QQmlImportInstance *QQmlImportsPrivate::addImportToNamespace(QQmlImportNamespace *nameSpace, const QString &uri, const QString &url, int vmaj, int vmin, QV4::CompiledData::Import::ImportType type, QList<QQmlError> *errors, bool lowPrecedence)
Coverage: 100.000% (5/5)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 1423-1446
100.000% (5/5)
142
addFileImport
Name: QQmlImportsPrivate::addFileImport
Prototype: bool QQmlImportsPrivate::addFileImport(const QString& uri, const QString &prefix, int vmaj, int vmin, bool isImplicitImport, bool incomplete, QQmlImportDatabase *database, QList<QQmlError> *errors)
Coverage:  86.207% (50/58)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 1499-1596
 86.207% (50/58)
5518
QQmlImportsPrivate
Name: QQmlImportsPrivate::QQmlImportsPrivate
Prototype: QQmlImportsPrivate::QQmlImportsPrivate(QQmlTypeLoader *loader)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 979-981
100.000% (1/1)
21

Generated by Squish Coco 4.2.0