Chrysalis - Pattern Test Coverage


pattern/
File: pattern/include/arguments/LineArgument.h
Date: 2026-08-27 18:35:18
Lines:
1/1
100.0%
Functions:
2/4
50.0%
Branches:
0/8
0.0%
Decisions:
0/0
-%
Calls:
0/20
0.0%

Line Branch Decision Call Exec Source
1 #ifndef CHRYSALIS_LINEARGUMENT_H
2 #define CHRYSALIS_LINEARGUMENT_H
3
4 #include "arguments/PatternPointArgument.h"
5
6 /** @defgroup Arguments Arguments
7 * @{
8 */
9 namespace Chrysalis {
10 class LineArgument {
11 PROVIDE_SERIALIZATION_ACCESS(LineArgument)
12 protected:
13 explicit LineArgument(const args::point* origin, const args::point* destination);
14 public:
15 explicit LineArgument(const args::point* origin, args::number&& angle);
16 virtual ~LineArgument();
17
18 [[nodiscard]] virtual bool isValid() const;
19
20 [[nodiscard]] const args::number& angle() const;
21 [[nodiscard]] const args::point* origin() const;
22
23 explicit operator CG::Line() const;
24 protected:
25 /// @uml{composition}
26 const args::point* origin_;
27 /// @uml{composition}
28 args::number angle_;
29 };
30
0/8
✗ Branch 4 not taken.
✗ Branch 5 not taken.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
✗ Branch 17 not taken.
✗ Branch 18 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
0/20
✗ Call 0 not invoked.
✗ Call 1 not invoked.
✗ Call 2 not invoked.
✗ Call 3 not invoked.
✗ Call 4 not invoked.
✗ Call 5 not invoked.
✗ Call 6 not invoked.
✗ Call 7 not invoked.
✗ Call 8 not invoked.
✗ Call 9 not invoked.
✗ Call 10 not invoked.
✗ Call 11 not invoked.
✗ Call 12 not invoked.
✗ Call 13 not invoked.
✗ Call 14 not invoked.
✗ Call 15 not invoked.
✗ Call 16 not invoked.
✗ Call 19 not invoked.
✗ Call 22 not invoked.
✗ Call 23 not invoked.
656 SERIALIZE_CONSTRUCTION(LineArgument, origin_, angle_)
31 namespace args {
32 using line = LineArgument;
33 }
34 }
35 /**@}*/
36
37 #endif //CHRYSALIS_LINEARGUMENT_H
38