Chrysalis - CLO3D Extensions Test Coverage


integrations/clo3d/
File: integrations/clo3d/src/TaskGroupException.cpp
Date: 2026-08-27 18:36:08
Lines:
6/15
40.0%
Functions:
3/5
60.0%
Branches:
3/8
37.5%
Decisions:
0/2
0.0%
Calls:
47/94
50.0%

Line Branch Decision Call Exec Source
1 #include "TaskGroupException.h"
2
3
4 using namespace CLO3D;
5
6
14/14
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 3 invoked.
✓ Call 4 invoked.
✓ Call 5 invoked.
✓ Call 6 invoked.
✓ Call 7 invoked.
✓ Call 8 invoked.
✓ Call 9 invoked.
✓ Call 10 invoked.
✓ Call 11 invoked.
✓ Call 12 invoked.
✓ Call 13 invoked.
786 TaskGroupException::TaskGroupException(const QString& groupName): groupName(groupName) {}
7
8 ✗ const QString& TaskGroupException::name() const {
9
0/5
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 3 not invoked.
✗ Call 4 not invoked.
✗ return groupName;
10 }
11
12 ✗ const char* TaskGroupException::what() const noexcept {
13
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 6 not invoked.
✗ QString errorMessage = groupName + ":";
14
0/2
✗ Decision 'true' not taken.
✗ Decision 'false' not taken.
0/19
✗ 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.
✗ 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 17 not invoked.
✗ Call 18 not invoked.
✗ for (const auto& [name, message]: tasksMessages) {
15
0/9
✗ 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.
✗ errorMessage.append("\n\t").append(name).append(": ").append(message);
16 }
17
0/2
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ const auto bytes = errorMessage.toUtf8();
18
0/1
✗ Call 0 not invoked.
✗ return bytes.constData();
19
0/2
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ }
20
21 786 bool TaskGroupException::empty() const {
22
6/6
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 3 invoked.
✓ Call 4 invoked.
✓ Call 5 invoked.
786 return tasksMessages.empty();
23 }
24
25 4 void TaskGroupException::addException(const BaseTaskException& e) {
26
3/6
✓ Branch 16 taken 4 times.
✗ Branch 17 not taken.
✓ Branch 26 taken 4 times.
✗ Branch 27 not taken.
✓ Branch 29 taken 4 times.
✗ Branch 30 not taken.
27/29
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 3 invoked.
✓ Call 4 invoked.
✓ Call 5 invoked.
✓ Call 6 invoked.
✓ Call 7 invoked.
✓ Call 8 invoked.
✓ Call 9 invoked.
✓ Call 10 invoked.
✓ Call 11 invoked.
✓ Call 12 invoked.
✓ Call 13 invoked.
✓ Call 14 invoked.
✓ Call 15 invoked.
✓ Call 18 invoked.
✓ Call 19 invoked.
✓ Call 20 invoked.
✓ Call 21 invoked.
✓ Call 22 invoked.
✓ Call 23 invoked.
✓ Call 24 invoked.
✓ Call 25 invoked.
✓ Call 28 invoked.
✓ Call 31 invoked.
✓ Call 32 invoked.
✗ Call 33 not invoked.
✗ Call 34 not invoked.
4 tasksMessages.emplace_back(e.name(), QString::fromUtf8(e.what()));
27 4 }
28