GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 39.3% 11 / 0 / 28
Functions: 39.3% 11 / 0 / 28
Branches: 36.4% 32 / 0 / 88

src/utilities/bcl/BCLEnums.hpp
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 #ifndef UTILITIES_BCL_BCLENUMS_HPP
7 #define UTILITIES_BCL_BCLENUMS_HPP
8
9 #include "../core/Enum.hpp"
10
11 namespace openstudio {
12
13 // clang-format off
14
15 /** \class MeasureType
16 * \brief Enumeration of the types of BCLMeasure, by input file type.
17 * \details ModelMeasures accept OpenStudio Models as input; EnergyPlusMeasures accept
18 * EnergyPlus IDF files as input; and UtilityMeasures do not operate on any sort of energy
19 * model. See the OPENSTUDIO_ENUM documentation in utilities/core/Enum.hpp. The actual macro
20 * call is:
21 * \code
22 OPENSTUDIO_ENUM( MeasureType,
23 ((ModelMeasure)(Model Measure))
24 ((EnergyPlusMeasure)(EnergyPlus Measure))
25 ((UtilityMeasure)(Utility Measure))
26 ((ReportingMeasure)(Reporting Measure))
27 );
28 * \endcode */
29
13/22
openstudio::MeasureType::buildStringVec[abi:cxx11](bool):
✓ Branch 0 taken 235 times.
✓ Branch 1 taken 1505 times.
✓ Branch 3 taken 235 times.
✓ Branch 6 taken 235 times.
✗ Branch 7 not taken.
✓ Branch 9 taken 235 times.
✓ Branch 12 taken 235 times.
✓ Branch 17 taken 1505 times.
✓ Branch 20 taken 1505 times.
✓ Branch 23 taken 1392 times.
✓ Branch 24 taken 696 times.
✓ Branch 25 taken 348 times.
✓ Branch 26 taken 348 times.
✗ Branch 27 not taken.
✓ Branch 28 taken 348 times.
openstudio::MeasureType::enumName[abi:cxx11]():
✗ Branch 1 not taken.
openstudio::operator<<(std::ostream&, openstudio::MeasureType const&):
✗ Branch 1 not taken.
✗ Branch 4 not taken.
✗ Branch 7 not taken.
✗ Branch 10 not taken.
✗ Branch 13 not taken.
✗ Branch 16 not taken.
4805 OPENSTUDIO_ENUM( MeasureType,
30 ((ModelMeasure)(Model Measure))
31 ((ModelicaMeasure)(Modelica Measure))
32 ((EnergyPlusMeasure)(EnergyPlus Measure))
33 ((UtilityMeasure)(Utility Measure))
34 ((ReportingMeasure)(Reporting Measure))
35 );
36
37 ✗ OPENSTUDIO_ENUM( MeasureBadgeType,
38 ((BCLMeasure))
39 ((MyMeasure))
40 ((OSMeasure))
41 );
42
43
11/22
openstudio::MeasureLanguage::buildStringVec[abi:cxx11](bool):
✓ Branch 0 taken 84 times.
✓ Branch 1 taken 560 times.
✓ Branch 3 taken 84 times.
✗ Branch 6 not taken.
✓ Branch 7 taken 84 times.
✗ Branch 9 not taken.
✗ Branch 12 not taken.
✓ Branch 17 taken 560 times.
✓ Branch 20 taken 560 times.
✓ Branch 23 taken 322 times.
✓ Branch 24 taken 644 times.
✓ Branch 25 taken 322 times.
✓ Branch 26 taken 322 times.
✗ Branch 27 not taken.
✓ Branch 28 taken 322 times.
openstudio::MeasureLanguage::enumName[abi:cxx11]():
✗ Branch 1 not taken.
openstudio::operator<<(std::ostream&, openstudio::MeasureLanguage const&):
✗ Branch 1 not taken.
✗ Branch 4 not taken.
✗ Branch 7 not taken.
✗ Branch 10 not taken.
✗ Branch 13 not taken.
✗ Branch 16 not taken.
2079 OPENSTUDIO_ENUM( MeasureLanguage,
44 ((Ruby))
45 ((Python))
46 );
47
48 /** \class BCLXMLType
49 * \brief Enumeration of the BCL XML file types.
50 * \details The Building Component Library (BCL) hosts both components and measures. The
51 * meta-data for individual instances of these two types of items are transmitted using XML
52 * files that with slightly different structures. Thus, this enum helps distinguish between the
53 * expected schema.
54 *
55 * See the OPENSTUDIO_ENUM documentation in utilities/core/Enum.hpp. The actual macro call is:
56 * \code
57 OPENSTUDIO_ENUM(BCLXMLType,
58 ((ComponentXML)(ComponentXML))
59 ((MeasureXML)(MeasureXML))
60 );
61 * \endcode */
62
8/22
openstudio::BCLXMLType::buildStringVec[abi:cxx11](bool):
✗ Branch 0 not taken.
✓ Branch 1 taken 110 times.
✗ Branch 3 not taken.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
✗ Branch 9 not taken.
✗ Branch 12 not taken.
✓ Branch 17 taken 110 times.
✓ Branch 20 taken 110 times.
✓ Branch 23 taken 55 times.
✓ Branch 24 taken 110 times.
✓ Branch 25 taken 55 times.
✓ Branch 26 taken 55 times.
✗ Branch 27 not taken.
✓ Branch 28 taken 55 times.
openstudio::BCLXMLType::enumName[abi:cxx11]():
✗ Branch 1 not taken.
openstudio::operator<<(std::ostream&, openstudio::BCLXMLType const&):
✗ Branch 1 not taken.
✗ Branch 4 not taken.
✗ Branch 7 not taken.
✗ Branch 10 not taken.
✗ Branch 13 not taken.
✗ Branch 16 not taken.
1657 OPENSTUDIO_ENUM(BCLXMLType,
63 ((ComponentXML)(ComponentXML))
64 ((MeasureXML)(MeasureXML))
65 );
66
67 // clang-format on
68
69 } // namespace openstudio
70
71 #endif // UTILITIES_BCL_BCLENUMS_HPP
72