GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 50.0% 5 / 0 / 10
Functions: 50.0% 2 / 0 / 4
Branches: 66.7% 2 / 0 / 3

src/alfalfa/AlfalfaConstant.cpp
Line Branch Exec Source
1 /***********************************************************************************************************************
2 * OpenStudio(R), Copyright (c) Alliance for Energy Innovation, LLC.
3 * See also https://openstudio.net/license
4 ***********************************************************************************************************************/
5
6 #include "AlfalfaConstant.hpp"
7
8 namespace openstudio {
9 namespace alfalfa {
10 4 AlfalfaConstant::AlfalfaConstant(double value) : m_value(value) {}
11
12 8 Json::Value AlfalfaConstant::toJSON() const {
13 8 Json::Value parameters;
14
2/2
✓ Branch 1 taken 8 times.
✓ Branch 4 taken 8 times.
8 parameters["value"] = m_value;
15
16 8 return parameters;
17 ✗ }
18
19 ✗ std::string AlfalfaConstant::deriveName() const {
20 ✗ return "";
21 }
22
23 ✗ double AlfalfaConstant::value() const {
24 ✗ return m_value;
25 }
26 } // namespace alfalfa
27 } // namespace openstudio
28