Chrysalis - Project Composer Test Coverage


pattern/composer/
File: pattern/composer/src/Instructions.cpp
Date: 2026-08-27 18:35:43
Lines:
12/12
100.0%
Functions:
3/3
100.0%
Branches:
2/2
100.0%
Decisions:
2/2
100.0%
Calls:
18/18
100.0%

Line Branch Decision Call Exec Source
1 #include "initializers/Instructions.h"
2
3 using namespace Chrysalis::Composer;
4
5 1 Instructions::Instructions(const Project* project) {
6
2/2
✓ Call 0 invoked.
✓ Call 1 invoked.
1 space = project->getSpace();
7
1/1
✓ Call 0 invoked.
1 outerInstructionsContainer_ = instructionsContainer;
8
2/2
✓ Call 0 invoked.
✓ Call 1 invoked.
1 instructionsContainer = project->getInstructions();
9 1 }
10
11 1 Instructions::~Instructions() {
12
1/1
✓ Call 0 invoked.
1 instructionsContainer = outerInstructionsContainer_;
13 1 }
14
15 1 void Instructions::operator<<(std::initializer_list<BaseInstruction*>&& instructionBlocks) const {
16
2/2
✓ Branch 7 taken 21 times.
✓ Branch 8 taken 1 times.
2/2
✓ Decision 'true' taken 21 times.
✓ Decision 'false' taken 1 times.
7/7
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 3 invoked.
✓ Call 4 invoked.
✓ Call 5 invoked.
✓ Call 6 invoked.
22 for (const auto& instruction : instructionBlocks) {
17
5/5
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 3 invoked.
✓ Call 4 invoked.
21 instructionsContainer->add(instruction);
18 }
19 1 }
20