Chrysalis - Pattern Test Coverage


pattern/
File: pattern/include/instructions/BasePatternInstruction.h
Date: 2026-08-27 18:35:18
Lines:
3/3
100.0%
Functions:
3/3
100.0%
Branches:
0/0
-%
Decisions:
0/0
-%
Calls:
9/9
100.0%

Line Branch Decision Call Exec Source
1 #ifndef CHRYSALIS_BASEPATTERNINSTRUCTION_H
2 #define CHRYSALIS_BASEPATTERNINSTRUCTION_H
3
4 #include "ProjectSpace.h"
5 #include "BaseInstruction.h"
6
7 #include "arguments/BaseArgument.h"
8 #include "arguments/PatternsContainerArgument.h"
9
10 /** @defgroup Instructions Instructions
11 * @{
12 */
13 namespace Chrysalis {
14 class BasePatternInstruction: public BaseInstruction {
15 552 SERIALIZED
16 public:
17 ~BasePatternInstruction() override;
18 protected:
19 explicit BasePatternInstruction(ProjectSpace* space, args::patterns* patterns);
20
21 250 [[nodiscard]] ProjectSpace& space() const {
22
9/9
✓ 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.
250 return *space_;
23 }
24
25 ProjectSpace* space_;
26 /// @uml{composition}
27 args::patterns* patterns_; // TODO: instructions container should own and validate this
28 };
29 };
30 /**@}*/
31
32 #endif //CHRYSALIS_BASEPATTERNINSTRUCTION_H
33