Chrysalis - CLO3D DevTools Extension Test Coverage


integrations/clo3d/extensions/dev-tools/
File: integrations/clo3d/extensions/dev-tools/src/ExportPatternCommand.cpp
Date: 2026-08-27 18:36:32
Lines:
0/9
0.0%
Functions:
0/2
0.0%
Branches:
0/28
0.0%
Decisions:
0/2
0.0%
Calls:
0/49
0.0%

Line Branch Decision Call Exec Source
1 #include "ExportPatternCommand.h"
2
3 #include "CLOAPIInterface.h"
4
5 #include "Logging.h"
6 #define LOGGER_NAME "Export Pattern Command"
7
8 using namespace CLO3D;
9
10
0/6
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 3 not invoked.
✗ Call 4 not invoked.
✗ Call 5 not invoked.
✗ ExportPatternCommand::ExportPatternCommand(ExportPatternCommandArguments* arguments): BaseCommand(arguments) {}
11
12 ✗ void ExportPatternCommand::run() {
13
0/5
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 3 not invoked.
✗ Call 4 not invoked.
✗ const auto arguments = dynamic_cast<ExportPatternCommandArguments*>(arguments_);
14
0/6
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 3 not invoked.
✗ Call 4 not invoked.
✗ Call 7 not invoked.
✗ const std::string filePath = arguments->getFilePath().toStdString();
15
0/4
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 4 not invoked.
✗ Call 5 not invoked.
✗ LOG_INFO("Exporting pattern into {}", filePath);
16
0/2
✗ Decision 'true' not taken.
✗ Decision 'false' not taken.
0/18
✗ Call 0 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 11 not invoked.
✗ Call 12 not invoked.
✗ Call 13 not invoked.
✗ Call 14 not invoked.
✗ Call 15 not invoked.
✗ Call 16 not invoked.
✗ Call 19 not invoked.
✗ Call 22 not invoked.
✗ Call 23 not invoked.
✗ Call 26 not invoked.
✗ Call 27 not invoked.
✗ if (!PATTERN_API->ExportPatternJSON(filePath)) {
17
0/4
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 4 not invoked.
✗ Call 5 not invoked.
✗ LOG_ERROR("Filed to export pattern.");
18 } else {
19
0/4
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 4 not invoked.
✗ Call 5 not invoked.
✗ LOG_INFO("Pattern was imported successfully into \"{}\"", filePath);
20 }
21
0/2
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ }
22