Chrysalis - Pattern Test Coverage


pattern/
File: pattern/include/instructions/FreePointInstruction.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:
41/45
91.1%

Line Branch Decision Call Exec Source
1 #ifndef CHRYSALIS_FREEPOINTINSTRUCTION_H
2 #define CHRYSALIS_FREEPOINTINSTRUCTION_H
3
4 #include "arguments/Argument.h"
5 #include "instructions/BasePatternInstruction.h"
6
7 /** @defgroup Instructions Instructions
8 * @{
9 */
10 namespace Chrysalis {
11 /**
12 * @uml{note[top] Syntax samples:
13 * A (1, 1)
14 * "A 1" (1.0, 2)
15 * A (1 * 2 + 3, param("Circumference of something"))}
16 */
17 class FreePointInstruction: public BasePatternInstruction {
18 PROVIDE_SERIALIZATION_ACCESS(FreePointInstruction)
19 public:
20 explicit FreePointInstruction(ProjectSpace* space, args::patterns* patterns,
21 args::name&& pointName, args::number&& x, args::number&& y);
22 void execute() override;
23 private:
24 args::name pointName_;
25 args::number x_;
26 args::number y_;
27 };
28
6/14
✓ Branch 7 taken 2 times.
✗ Branch 8 not taken.
✓ Branch 11 taken 2 times.
✗ Branch 12 not taken.
✓ Branch 15 taken 2 times.
✗ Branch 16 not taken.
✓ Branch 19 taken 2 times.
✗ Branch 20 not taken.
✓ Branch 23 taken 2 times.
✗ Branch 24 not taken.
✓ Branch 38 taken 2 times.
✗ Branch 39 not taken.
✗ Branch 43 not taken.
✗ Branch 44 not taken.
41/45
✓ 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 41 invoked.
✓ Call 42 invoked.
✗ Call 45 not invoked.
✗ Call 46 not invoked.
✗ Call 47 not invoked.
✗ Call 48 not invoked.
20 SERIALIZE_DERIVED_CONSTRUCTION(FreePointInstruction, BasePatternInstruction, space_, patterns_, pointName_, x_, y_)
29 }
30 /**@}*/
31
32 #endif //CHRYSALIS_FREEPOINTINSTRUCTION_H
33