Chrysalis - Pattern Test Coverage


pattern/
File: pattern/include/instructions/CurveInstruction.h
Date: 2026-08-27 18:35:18
Lines:
1/1
100.0%
Functions:
4/4
100.0%
Branches:
6/14
42.9%
Decisions:
0/0
-%
Calls:
39/40
97.5%

Line Branch Decision Call Exec Source
1 #ifndef CHRYSALIS_CURVEINSTRUCTION_H
2 #define CHRYSALIS_CURVEINSTRUCTION_H
3
4 #include "CompositiveContainer.h"
5 #include "arguments/VectorArgument.h"
6 #include "arguments/PatternPointArgument.h"
7 #include "instructions/BasePatternInstruction.h"
8
9 /** @defgroup Instructions Instructions
10 * @{
11 */
12 namespace Chrysalis {
13 class CurveInstruction: public BasePatternInstruction {
14 PROVIDE_SERIALIZATION_ACCESS(CurveInstruction)
15 public:
16 explicit CurveInstruction(ProjectSpace* space, args::patterns* patterns,
17 const args::vector* from, const args::vector* to,
18 const args::container<PatternPointArgument>* points);
19 ~CurveInstruction() override;
20
21 void execute() override;
22 private:
23 /// @uml{composition}
24 const args::vector* from_;
25 /// @uml{composition}
26 const args::vector* to_;
27 /// @uml{composition}
28 const args::container<PatternPointArgument>* points_;
29 };
30
6/14
✓ Branch 7 taken 4 times.
✗ Branch 8 not taken.
✓ Branch 11 taken 4 times.
✗ Branch 12 not taken.
✓ Branch 15 taken 4 times.
✗ Branch 16 not taken.
✓ Branch 19 taken 4 times.
✗ Branch 20 not taken.
✓ Branch 23 taken 4 times.
✗ Branch 24 not taken.
✓ Branch 38 taken 4 times.
✗ Branch 39 not taken.
✗ Branch 41 not taken.
✗ Branch 42 not taken.
39/40
✓ 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 17 invoked.
✓ Call 18 invoked.
✓ Call 19 invoked.
✓ Call 20 invoked.
✓ Call 21 invoked.
✓ Call 22 invoked.
✓ Call 23 invoked.
✓ Call 24 invoked.
✓ Call 25 invoked.
✓ Call 26 invoked.
✓ Call 27 invoked.
✓ Call 28 invoked.
✓ Call 29 invoked.
✓ Call 30 invoked.
✓ Call 31 invoked.
✓ Call 32 invoked.
✓ Call 33 invoked.
✓ Call 34 invoked.
✓ Call 35 invoked.
✓ Call 36 invoked.
✓ Call 37 invoked.
✓ Call 40 invoked.
✗ Call 43 not invoked.
40 SERIALIZE_DERIVED_CONSTRUCTION(CurveInstruction, BasePatternInstruction, space_, patterns_, from_, to_, points_);
31 }
32 /**@}*/
33
34 #endif //CHRYSALIS_CURVEINSTRUCTION_H
35