Chrysalis - Pattern Test Coverage


pattern/
File: pattern/include/arguments/OptionArgument.h
Date: 2026-08-27 18:35:18
Lines:
1/1
100.0%
Functions:
4/4
100.0%
Branches:
3/8
37.5%
Decisions:
0/0
-%
Calls:
18/20
90.0%

Line Branch Decision Call Exec Source
1 #ifndef CHRYSALIS_OPTIONARGUMENT_H
2 #define CHRYSALIS_OPTIONARGUMENT_H
3
4 #include "Option.h"
5 #include "arguments/Argument.h"
6 #include "arguments/BaseCalculatedArgument.h"
7
8 /** @defgroup Arguments Arguments
9 * @{
10 */
11 namespace Chrysalis {
12 class OptionArgument: public BaseCalculatedArgument<bool> {
13 PROVIDE_SERIALIZATION_ACCESS(OptionArgument)
14 public:
15 explicit OptionArgument(const OptionsContainer* options, args::name&& name);
16 protected:
17 std::expected<bool, Error> calculate() const override;
18 private:
19 const OptionsContainer* options_;
20 /// @uml{composition}
21 args::name name_;
22 };
23
3/8
✓ Branch 4 taken 6 times.
✗ Branch 5 not taken.
✓ Branch 8 taken 6 times.
✗ Branch 9 not taken.
✓ Branch 17 taken 6 times.
✗ Branch 18 not taken.
✗ Branch 20 not taken.
✗ Branch 21 not taken.
18/20
✓ 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 19 invoked.
✗ Call 22 not invoked.
✗ Call 23 not invoked.
60 SERIALIZE_DERIVED_CONSTRUCTION(OptionArgument, BaseCalculatedArgument<bool>, options_, name_)
24 }
25 /**@}*/
26
27 #endif //CHRYSALIS_OptionARGUMENT_H
28