Chrysalis - Project Composer Test Coverage


pattern/composer/
File: pattern/composer/src/NumberProxy.cpp
Date: 2026-08-27 18:35:43
Lines:
24/28
85.7%
Functions:
9/12
75.0%
Branches:
10/34
29.4%
Decisions:
0/0
-%
Calls:
91/114
79.8%

Line Branch Decision Call Exec Source
1 #include "proxies/NumberProxy.h"
2
3 #include "initializers/Instructions.h"
4 #include "initializers/PatternInstructions.h"
5
6 #include "instructions/DartInstruction.h"
7 #include "instructions/EdgeDartInstruction.h"
8 #include "instructions/UnfoldEdgeDartInstruction.h"
9
10 using namespace Chrysalis;
11
12
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.
✗ Proxy::Number::Number(const double value): number_(new Argument(value)) {}
13
14
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.
✗ Proxy::Number::Number(args::number&& number): number_(std::move(number)) {}
15
16 4 Proxy::Number::Point::Point(args::number&& number, const PatternPointArgument* point)
17
8/8
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 3 invoked.
✓ Call 4 invoked.
✓ Call 5 invoked.
✓ Call 6 invoked.
✓ Call 7 invoked.
4 : number_(std::move(number)), point_(point) {}
18
19 4 Proxy::Number::Point::Vector::Vector(args::number&& number, const PatternPointArgument* point, const args::vector* vector)
20
10/10
✓ 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.
4 : number_(std::move(number)), vector_(vector), point_(point) {}
21
22 1 Proxy::Number::Vector::Segment::Segment(args::number&& number, const args::vector* vector, const args::segment* segment)
23
10/10
✓ 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.
1 : number_(std::move(number)), vector_(vector), segment_(segment) {}
24
25 1 Proxy::Number::Segment::And::Segment::Segment(args::number&& number, const args::segment* segment1, const args::segment* segment2)
26
10/10
✓ 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.
1 : number_(std::move(number)), segment1_(segment1), segment2_(segment2) {}
27
28 ✗ Proxy::Number::operator args::number&&() {
29
0/4
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 3 not invoked.
✗ return std::move(number_);
30 }
31
32 4 Proxy::Number::Point::operator args::number&&() {
33
4/4
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 3 invoked.
4 return std::move(number_);
34 }
35
36 4 Proxy::Number::Point::operator const PatternPointArgument*() const {
37
2/2
✓ Call 0 invoked.
✓ Call 1 invoked.
4 return point_;
38 }
39
40 4 DartInstruction* Proxy::Number::Point::Vector::operator>>(const args::vector* vector) {
41 return new DartInstruction(
42 Composer::Instructions::space,
43
1/2
✓ Branch 2 taken 4 times.
✗ Branch 3 not taken.
2/3
✓ Call 0 invoked.
✓ Call 1 invoked.
✗ Call 4 not invoked.
4 new args::patterns(*Composer::PatternInstructions::patterns),
44
2/2
✓ Call 0 invoked.
✓ Call 1 invoked.
4 point_, std::move(number_), vector_, vector
45
2/8
✓ Branch 9 taken 4 times.
✗ Branch 10 not taken.
✓ Branch 13 taken 4 times.
✗ Branch 14 not taken.
✗ Branch 15 not taken.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
11/12
✓ 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 11 invoked.
✓ Call 12 invoked.
✗ Call 19 not invoked.
12 );
46 }
47
48 1 Proxy::Number::Vector::Segment::operator EdgeDartInstruction*() {
49 return new EdgeDartInstruction(
50 Composer::Instructions::space,
51
1/2
✓ Branch 2 taken 1 times.
✗ Branch 3 not taken.
2/3
✓ Call 0 invoked.
✓ Call 1 invoked.
✗ Call 4 not invoked.
1 new args::patterns(*Composer::PatternInstructions::patterns),
52
2/3
✓ Call 0 invoked.
✓ Call 1 invoked.
✗ Call 2 not invoked.
1 segment_, vector_, std::move(number_), new args::optional<args::number>()
53
3/12
✓ Branch 3 taken 1 times.
✗ Branch 4 not taken.
✓ Branch 13 taken 1 times.
✗ Branch 14 not taken.
✓ Branch 17 taken 1 times.
✗ Branch 18 not taken.
✗ Branch 19 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
✗ Branch 22 not taken.
✗ Branch 23 not taken.
✗ Branch 24 not taken.
13/14
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 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 15 invoked.
✓ Call 16 invoked.
✗ Call 25 not invoked.
3 );
54 }
55
56 1 Proxy::Number::Segment::And::Segment::operator UnfoldEdgeDartInstruction*() {
57 return new UnfoldEdgeDartInstruction(
58 Composer::Instructions::space,
59
1/2
✓ Branch 2 taken 1 times.
✗ Branch 3 not taken.
2/3
✓ Call 0 invoked.
✓ Call 1 invoked.
✗ Call 4 not invoked.
1 new args::patterns(*Composer::PatternInstructions::patterns),
60
2/2
✓ Call 0 invoked.
✓ Call 1 invoked.
1 segment1_, segment2_, std::move(number_)
61
2/8
✓ Branch 9 taken 1 times.
✗ Branch 10 not taken.
✓ Branch 13 taken 1 times.
✗ Branch 14 not taken.
✗ Branch 15 not taken.
✗ Branch 16 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
11/12
✓ 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 11 invoked.
✓ Call 12 invoked.
✗ Call 19 not invoked.
3 );
62 }
63