OpenCoverage

Qt Quick Test Coverage

Function Tree

Path:<top>::QQmlImports
FunctionCondition %eLOC - Effective Lines of Codeā–¾McCabe - Cyclomatic Complexity
resolvedScripts
Name: QQmlImports::resolvedScripts
Prototype: QList<QQmlImports::ScriptReference> QQmlImports::resolvedScripts() const
Coverage: 100.000% (12/12)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 523-557
100.000% (12/12)
206
resolveType
Name: QQmlImports::resolveType
Prototype: bool QQmlImports::resolveType(const QHashedStringRef &type, QQmlType *type_return, int *vmaj, int *vmin, QQmlImportNamespace** ns_return, QList<QQmlError> *errors, QQmlType::RegistrationType registrationType, QQmlImport::RecursionRestriction recursionRestriction) const
Coverage:  40.741% (11/27)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 638-671
 40.741% (11/27)
179
populateCache
Name: QQmlImports::populateCache
Prototype: void QQmlImports::populateCache(QQmlTypeNameCache *cache) const
Coverage: 100.000% (16/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 411-440
100.000% (16/16)
166
completeQmldirPaths
Name: QQmlImports::completeQmldirPaths
Prototype: QStringList QQmlImports::completeQmldirPaths(const QString &uri, const QStringList &basePaths, int vmaj, int vmin)
Coverage:  93.750% (15/16)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 580-611
 93.750% (15/16)
166
resolvedCompositeSingletons
Name: QQmlImports::resolvedCompositeSingletons
Prototype: QList<QQmlImports::CompositeSingletonReference> QQmlImports::resolvedCompositeSingletons() const
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 502-515
100.000% (4/4)
72
updateQmldirContent
Name: QQmlImports::updateQmldirContent
Prototype: bool QQmlImports::updateQmldirContent(QQmlImportDatabase *importDb, const QString &uri, const QString &prefix, const QString &qmldirIdentifier, const QString& qmldirUrl, QList<QQmlError> *errors)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 1716-1728
 50.000% (2/4)
62
addLibraryImport
Name: QQmlImports::addLibraryImport
Prototype: bool QQmlImports::addLibraryImport(QQmlImportDatabase *importDb, const QString &uri, const QString &prefix, int vmaj, int vmin, const QString &qmldirIdentifier, const QString& qmldirUrl, bool incomplete, QList<QQmlError> *errors)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 1702-1714
 50.000% (2/4)
62
addImplicitImport
Name: QQmlImports::addImplicitImport
Prototype: bool QQmlImports::addImplicitImport(QQmlImportDatabase *importDb, QList<QQmlError> *errors)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 1655-1665
 50.000% (2/4)
62
addFileImport
Name: QQmlImports::addFileImport
Prototype: bool QQmlImports::addFileImport(QQmlImportDatabase *importDb, const QString& uri, const QString& prefix, int vmaj, int vmin, bool incomplete, QList<QQmlError> *errors)
Coverage:  50.000% (2/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 1688-1700
 50.000% (2/4)
62
versionString
Name: QQmlImports::versionString
Prototype: QString QQmlImports::versionString(int vmaj, int vmin, ImportVersion version)
Coverage: 100.000% (7/7)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 613-623
100.000% (7/7)
53
operator =
Name: QQmlImports::operator =
Prototype: QQmlImports & QQmlImports::operator =(const QQmlImports &copy)
Coverage:  0.000% (0/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 357-365
  0.000% (0/4)
52
urlFromLocalFileOrQrcOrUrl
Name: QQmlImports::urlFromLocalFileOrQrcOrUrl
Prototype: QUrl QQmlImports::urlFromLocalFileOrQrcOrUrl(const QString &file)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 1747-1755
100.000% (4/4)
42
setBaseUrl
Name: QQmlImports::setBaseUrl
Prototype: void QQmlImports::setBaseUrl(const QUrl& url, const QString &urlString)
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 381-391
100.000% (4/4)
42
~QQmlImports
Name: QQmlImports::~QQmlImports
Prototype: QQmlImports::~QQmlImports()
Coverage: 100.000% (4/4)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 372-376
100.000% (4/4)
22
QQmlImports
Name: QQmlImports::QQmlImports
Prototype: QQmlImports::QQmlImports(QQmlTypeLoader *typeLoader)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 367-370
100.000% (1/1)
21
setDesignerSupportRequired
Name: QQmlImports::setDesignerSupportRequired
Prototype: void QQmlImports::setDesignerSupportRequired(bool b)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 1757-1760
100.000% (1/1)
11
resolveType
Name: QQmlImports::resolveType
Prototype: bool QQmlImports::resolveType(QQmlImportNamespace *ns, const QHashedStringRef &type, QQmlType *type_return, int *vmaj, int *vmin, QQmlType::RegistrationType registrationType) const
Coverage:  0.000% (0/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 729-734
  0.000% (0/1)
11
locateQmldir
Name: QQmlImports::locateQmldir
Prototype: bool QQmlImports::locateQmldir(QQmlImportDatabase *importDb, const QString& uri, int vmaj, int vmin, QString *qmldirFilePath, QString *url)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 1730-1735
100.000% (1/1)
11
isLocal
Name: QQmlImports::isLocal
Prototype: bool QQmlImports::isLocal(const QString &url)
Coverage:  0.000% (0/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 1737-1740
  0.000% (0/1)
11
isLocal
Name: QQmlImports::isLocal
Prototype: bool QQmlImports::isLocal(const QUrl &url)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 1742-1745
100.000% (1/1)
11
baseUrl
Name: QQmlImports::baseUrl
Prototype: QUrl QQmlImports::baseUrl() const
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 396-399
100.000% (1/1)
11
QQmlImports
Name: QQmlImports::QQmlImports
Prototype: QQmlImports::QQmlImports(const QQmlImports &copy)
Coverage: 100.000% (1/1)
Absolute File Name: /home/opencoverage/opencoverage/guest-scripts/qtdeclarative/src/qtdeclarative/src/qml/qml/qqmlimport.cpp
Lines: 351-355
100.000% (1/1)
11

Generated by Squish Coco 4.2.0