Chrysalis - Pattern Test Coverage


pattern/
File: pattern/include/arguments/SegmentArgument.h
Date: 2026-08-27 18:35:18
Lines:
1/1
100.0%
Functions:
4/4
100.0%
Branches:
3/8
37.5%
Decisions:
0/0
-%
Calls:
18/19
94.7%

Line Branch Decision Call Exec Source
1 #ifndef CHRYSALIS_SEGMENTARGUMENT_H
2 #define CHRYSALIS_SEGMENTARGUMENT_H
3
4 #include "arguments/VectorArgument.h"
5 #include "arguments/PatternPointArgument.h"
6
7 /** @defgroup Arguments Arguments
8 * @{
9 */
10 namespace Chrysalis {
11 class SegmentArgument: public VectorArgument {
12 PROVIDE_SERIALIZATION_ACCESS(SegmentArgument)
13 public:
14 explicit SegmentArgument(const args::point* origin, const args::point* destination);
15 ~SegmentArgument() override;
16
17 const args::point* destination() const;
18
19 explicit operator CG::Segment() const override;
20 private:
21 /// @uml{composition}
22 const args::point* destination_;
23 };
24
3/8
✓ Branch 4 taken 46 times.
✗ Branch 5 not taken.
✓ Branch 8 taken 46 times.
✗ Branch 9 not taken.
✓ Branch 17 taken 46 times.
✗ Branch 18 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
18/19
✓ 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 16 invoked.
✓ Call 19 invoked.
✗ Call 22 not invoked.
460 SERIALIZE_DERIVED_CONSTRUCTION(SegmentArgument, VectorArgument, origin_, destination_)
25 namespace args {
26 using segment = SegmentArgument;
27 }
28 }
29 /**@}*/
30
31 #endif //CHRYSALIS_SEGMENTARGUMENT_H
32