Chrysalis - CLO3D Qt Designer plugin Test Coverage


integrations/clo3d/tools/qt-designer-plugin/
File: integrations/clo3d/tools/qt-designer-plugin/src/ExtensionFactory.cpp
Date: 2026-08-27 18:34:54
Lines:
0/12
0.0%
Functions:
0/2
0.0%
Branches:
0/26
0.0%
Decisions:
0/10
0.0%
Calls:
0/36
0.0%

Line Branch Decision Call Exec Source
1 #include "ExtensionFactory.h"
2
3 #include "BaseDialogContainer.h"
4 #include "BaseDialogContainerExtension.h"
5 #include "BaseUIExporterSettingsBlockContainerWidget.h"
6 #include "BaseUIExporterSettingsBlockContainerWidgetExtension.h"
7 #include "TableInputAccordionExtension.h"
8 #include "SettingsBlockContainerWidget.h"
9 #include "SettingsBlockContainerWidgetExtension.h"
10
11 using namespace CLO3D::UI;
12
13
0/11
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 3 not invoked.
✗ Call 4 not invoked.
✗ Call 5 not invoked.
✗ Call 6 not invoked.
✗ Call 7 not invoked.
✗ Call 8 not invoked.
✗ Call 9 not invoked.
✗ Call 10 not invoked.
✗ ExtensionFactory::ExtensionFactory(QExtensionManager* parent): QExtensionFactory(parent) {}
14
15 ✗ QObject* ExtensionFactory::createExtension(QObject* object, const QString& iid, QObject* parent) const {
16
0/2
✗ Decision 'true' not taken.
✗ Decision 'false' not taken.
0/5
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 3 not invoked.
✗ Call 4 not invoked.
✗ if (iid == Q_TYPEID(QDesignerContainerExtension)) {
17
0/2
✗ Decision 'true' not taken.
✗ Decision 'false' not taken.
0/1
✗ Call 0 not invoked.
✗ if (auto* widget = qobject_cast<TableInputAccordion*>(object)) {
18
0/4
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 7 not invoked.
✗ return new TableInputAccordionExtension(widget, parent);
19 }
20
0/2
✗ Decision 'true' not taken.
✗ Decision 'false' not taken.
0/1
✗ Call 0 not invoked.
✗ if (auto* widget = qobject_cast<SettingsBlockContainerWidget*>(object)) {
21
0/4
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 7 not invoked.
✗ return new SettingsBlockContainerWidgetExtension(widget, parent);
22 }
23
0/2
✗ Decision 'true' not taken.
✗ Decision 'false' not taken.
0/1
✗ Call 0 not invoked.
✗ if (auto* widget = qobject_cast<BaseUIExporterSettingsBlockContainerWidget*>(object)) {
24
0/4
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 7 not invoked.
✗ return new BaseUIExporterSettingsBlockContainerWidgetExtension(widget, parent);
25 }
26
0/2
✗ Decision 'true' not taken.
✗ Decision 'false' not taken.
0/1
✗ Call 0 not invoked.
✗ if (auto* dialog = qobject_cast<BaseDialogContainer*>(object)) {
27
0/4
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 7 not invoked.
✗ return new BaseDialogContainerExtension(dialog, parent);
28 }
29 }
30 ✗ return nullptr;
31 }
32