Chrysalis - Pattern Test Coverage


pattern/
File: pattern/include/arguments/ParameterArgument.h
Date: 2026-08-27 18:35:18
Lines:
1/1
100.0%
Functions:
4/4
100.0%
Branches:
2/6
33.3%
Decisions:
0/0
-%
Calls:
11/12
91.7%

Line Branch Decision Call Exec Source
1 #ifndef CHRYSALIS_PARAMETERARGUMENT_H
2 #define CHRYSALIS_PARAMETERARGUMENT_H
3
4 #include <boost/serialization/export.hpp>
5
6 #include "Parameter.h"
7 #include "BaseCalculatedArgument.h"
8
9 /** @defgroup Arguments Arguments
10 * @{
11 */
12 namespace Chrysalis {
13 class ParameterArgument: public BaseCalculatedArgument<double> {
14 PROVIDE_SERIALIZATION_ACCESS(ParameterArgument)
15 public:
16 explicit ParameterArgument(Parameter* parameter);
17 protected:
18 std::expected<double, Error> calculate() const override;
19 private:
20 Parameter* parameter_;
21 };
22
2/6
✓ Branch 3 taken 54 times.
✗ Branch 4 not taken.
✓ Branch 10 taken 54 times.
✗ Branch 11 not taken.
✗ Branch 13 not taken.
✗ Branch 14 not taken.
11/12
✓ 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 12 invoked.
✗ Call 15 not invoked.
432 SERIALIZE_DERIVED_CONSTRUCTION(ParameterArgument, BaseCalculatedArgument<double>, parameter_)
23 }
24 /**@}*/
25
26 #endif //CHRYSALIS_PARAMETERARGUMENT_H
27