Chrysalis - CLO3D Extensions Test Coverage


integrations/clo3d/
File: integrations/clo3d/include/CommandRunner.h
Date: 2026-08-27 18:36:08
Lines:
0/7
0.0%
Functions:
0/2
0.0%
Branches:
0/28
0.0%
Decisions:
0/0
-%
Calls:
0/55
0.0%

Line Branch Decision Call Exec Source
1 #ifndef CHRYSALIS_COMMANDSCONTAINER_H
2 #define CHRYSALIS_COMMANDSCONTAINER_H
3
4 #include <QMenu>
5
6 #include <CommandDialog.h>
7
8 #include "BaseCommandArgumentsWidget.h"
9
10 namespace CLO3D {
11 class CommandRunner {
12 public:
13 explicit CommandRunner(QSettings* settings, QMenu* menu);
14
15 template<typename Command, typename Arguments, typename Widget>
16 requires std::is_base_of_v<BaseCommand, Command> &&
17 std::is_base_of_v<BaseCommandArguments, Arguments> &&
18 std::is_base_of_v<UI::BaseCommandArgumentsWidget, Widget>
19 ✗ void add() {
20
0/13
✗ 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 9 not invoked.
✗ Call 10 not invoked.
✗ Call 13 not invoked.
✗ Call 14 not invoked.
✗ Call 15 not invoked.
✗ Call 16 not invoked.
✗ const auto& action = menu_->addAction(Arguments::NAME);
21
0/6
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 5 not invoked.
✗ Call 6 not invoked.
✗ Call 7 not invoked.
✗ QObject::connect(action, &QAction::triggered, [this] {
22
0/7
✗ 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 10 not invoked.
✗ const auto arguments = new Arguments(settings_);
23
0/19
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 5 not invoked.
✗ Call 6 not invoked.
✗ Call 9 not invoked.
✗ Call 12 not invoked.
✗ Call 13 not invoked.
✗ Call 16 not invoked.
✗ Call 17 not invoked.
✗ Call 20 not invoked.
✗ Call 21 not invoked.
✗ Call 24 not invoked.
✗ Call 25 not invoked.
✗ Call 26 not invoked.
✗ Call 27 not invoked.
✗ Call 30 not invoked.
✗ Call 33 not invoked.
✗ Call 36 not invoked.
✗ const auto dialog = new UI::CommandDialog(Arguments::NAME, new Widget(arguments), new Command(arguments));
24
0/10
✗ 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.
✗ dialog->exec();
25 });
26 ✗ }
27 private:
28 QMenu* menu_;
29 QSettings* settings_;
30 };
31 }
32
33 #endif //CHRYSALIS_COMMANDSCONTAINER_H
34