Chrysalis - Project Composer Test Coverage


pattern/composer/
File: pattern/composer/src/SegmentProxy.cpp
Date: 2026-08-27 18:35:43
Lines:
22/22
100.0%
Functions:
12/12
100.0%
Branches:
6/12
50.0%
Decisions:
0/0
-%
Calls:
37/43
86.0%

Line Branch Decision Call Exec Source
1 #include "proxies/SegmentProxy.h"
2
3 using namespace Chrysalis;
4
5
1/1
✓ Call 0 invoked.
20 Proxy::Segment::Segment(args::segment* segment): segment_(segment) {}
6
7
1/1
✓ Call 0 invoked.
2 Proxy::Segment::And::And(const args::segment* segment): segment_(segment) {}
8
9 1 Proxy::Segment::And::Segment::Segment(const args::segment* segment1, const args::segment* segment2)
10
3/3
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
1 : segment1_(segment1), segment2_(segment2) {}
11
12 10 Proxy::Segment::operator SegmentArgument*() const {
13
1/1
✓ Call 0 invoked.
10 return segment_;
14 }
15
16 2 Proxy::Segment::And Proxy::Segment::operator->() const {
17
1/2
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4/5
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 5 invoked.
✗ Call 6 not invoked.
2 return And(segment_);
18 }
19
20 1 Proxy::Segment::And::Segment Proxy::Segment::And::seg(const args::segment* segment) const {
21
1/2
✓ Branch 3 taken 1 times.
✗ Branch 4 not taken.
4/5
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 5 invoked.
✗ Call 6 not invoked.
1 return Segment(segment_, segment);
22 }
23
24 2 Proxy::Segment::And* Proxy::Segment::And::operator->() {
25 2 return this;
26 }
27
28 1 Proxy::Number::Segment::And::Segment Proxy::Segment::And::Segment::operator()(args::number&& number) const {
29
7/7
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 3 invoked.
✓ Call 4 invoked.
✓ Call 5 invoked.
✓ Call 6 invoked.
1 return Number::Segment::And::Segment(std::move(number), segment1_, segment2_);
30 }
31
32 2 Proxy::Line::Lines Proxy::Segment::operator|(const args::container<args::line>* lines) const {
33
1/2
✓ Branch 3 taken 2 times.
✗ Branch 4 not taken.
4/5
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 5 invoked.
✗ Call 6 not invoked.
2 return Line::Lines(segment_, lines);
34 }
35
36 5 Proxy::Point::Vector Proxy::Segment::operator>>(const PatternPointArgument* point) const {
37
1/2
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
4/5
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 5 invoked.
✗ Call 6 not invoked.
5 return Point::Vector(point, segment_);
38 }
39
40 1 Proxy::Vector::And::Vector Proxy::Segment::operator&(const args::vector* vector) const {
41
1/2
✓ Branch 3 taken 1 times.
✗ Branch 4 not taken.
4/5
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 5 invoked.
✗ Call 6 not invoked.
1 return Vector::And::Vector(segment_, vector);
42 }
43
44 1 Proxy::Vector::Segment Proxy::Segment::And::vec(const args::vector* vector) const {
45
1/2
✓ Branch 3 taken 1 times.
✗ Branch 4 not taken.
4/5
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 5 invoked.
✗ Call 6 not invoked.
1 return Vector::Segment(vector, segment_);
46 }
47