Chrysalis - Project Composer Test Coverage


pattern/composer/
File: pattern/composer/src/LineProxy.cpp
Date: 2026-08-27 18:35:43
Lines:
17/21
81.0%
Functions:
7/9
77.8%
Branches:
4/14
28.6%
Decisions:
0/0
-%
Calls:
33/42
78.6%

Line Branch Decision Call Exec Source
1 #include "proxies/LineProxy.h"
2
3 #include "initializers/Instructions.h"
4 #include "initializers/PatternInstructions.h"
5
6 using namespace Chrysalis;
7
8 ✗ Proxy::Line::Line(const args::line* line)
9
0/1
✗ Call 0 not invoked.
✗ : line_(line) {}
10
11 2 Proxy::Line::Lines::Lines(const args::line* line, const args::container<args::line>* lines)
12
3/3
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
2 : line_(line), lines_(lines) {}
13
14 3 Proxy::Line::Lines::And::And(const args::line* line, const args::container<args::line>* lines)
15
3/3
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
3 : line_(line), lines_(lines) {}
16
17 3 Proxy::Line::Lines::And::Names::Names(const args::line* line, const args::container<args::line>* lines,
18 3 const args::container<Argument<std::string>>* names)
19
5/5
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 3 invoked.
✓ Call 4 invoked.
3 : line_(line), lines_(lines), names_(names) {}
20
21 ✗ Proxy::Line::Lines Proxy::Line::operator|(const args::container<args::line>* lines) const {
22
0/5
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 5 not invoked.
✗ Call 6 not invoked.
✗ return Lines(line_, lines);
23 }
24
25 2 Proxy::Line::Lines::And Proxy::Line::Lines::operator->() const {
26
1/2
✓ Branch 5 taken 2 times.
✗ Branch 6 not taken.
6/7
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 3 invoked.
✓ Call 4 invoked.
✓ Call 7 invoked.
✗ Call 8 not invoked.
2 return And(line_, lines_);
27 }
28
29 3 Proxy::Line::Lines::And::Names Proxy::Line::Lines::And::names(
30 const args::container<Argument<std::string>>* names) const {
31
4/4
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 3 invoked.
3 return Names(line_, lines_, names);
32 }
33
34 3 Proxy::Line::Lines::And* Proxy::Line::Lines::And::operator->() {
35 3 return this;
36 }
37
38 3 Proxy::Line::Lines::And::Names::operator IntersectionPointInstruction*() const {
39 return new IntersectionPointInstruction(
40 Composer::Instructions::space,
41
1/2
✓ Branch 2 taken 3 times.
✗ Branch 3 not taken.
2/3
✓ Call 0 invoked.
✓ Call 1 invoked.
✗ Call 4 not invoked.
3 new args::patterns(*Composer::PatternInstructions::patterns),
42
1/2
✓ Branch 5 taken 3 times.
✗ Branch 6 not taken.
5/5
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 3 invoked.
✓ Call 4 invoked.
3 line_, names_, lines_
43
1/6
✓ Branch 5 taken 3 times.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✗ Branch 10 not taken.
5/6
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 3 invoked.
✓ Call 4 invoked.
✗ Call 11 not invoked.
9 );
44 }
45