Chrysalis - Pattern Test Coverage


pattern/
File: pattern/include/instructions/ConditionalInstructionsContainer.h
Date: 2026-08-27 18:35:18
Lines:
1/1
100.0%
Functions:
4/4
100.0%
Branches:
4/10
40.0%
Decisions:
0/0
-%
Calls:
25/26
96.2%

Line Branch Decision Call Exec Source
1 #ifndef CHRYSALIS_CONDITIONALINSTRUCTIONSCONTAINER_H
2 #define CHRYSALIS_CONDITIONALINSTRUCTIONSCONTAINER_H
3
4 #include "BaseInstructionsContainer.h"
5 #include "instructions/BaseInstruction.h"
6 #include "arguments/ConditionalArgument.h"
7
8 /** @defgroup Instructions Instructions
9 * @{
10 */
11 namespace Chrysalis {
12 class ConditionalInstructionsContainer: public BaseInstruction {
13 PROVIDE_SERIALIZATION_ACCESS(ConditionalInstructionsContainer)
14 public:
15 explicit ConditionalInstructionsContainer(const args::condition* condition,
16 const BaseInstructionsContainer<BaseInstruction>* positive,
17 const BaseInstructionsContainer<BaseInstruction>* negative);
18 ~ConditionalInstructionsContainer() override;
19
20 void execute() override;
21 private:
22 const args::condition* condition_;
23 const BaseInstructionsContainer<BaseInstruction>* positive_;
24 const BaseInstructionsContainer<BaseInstruction>* negative_;
25 };
26
4/10
✓ Branch 5 taken 8 times.
✗ Branch 6 not taken.
✓ Branch 9 taken 8 times.
✗ Branch 10 not taken.
✓ Branch 13 taken 8 times.
✗ Branch 14 not taken.
✓ Branch 24 taken 8 times.
✗ Branch 25 not taken.
✗ Branch 27 not taken.
✗ Branch 28 not taken.
25/26
✓ 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 26 invoked.
✗ Call 29 not invoked.
80 SERIALIZE_DERIVED_CONSTRUCTION(ConditionalInstructionsContainer, BaseInstruction, condition_, positive_, negative_)
27 }
28 /**@}*/
29
30 #endif //CHRYSALIS_CONDITIONALINSTRUCTIONSCONTAINER_H
31