GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 50.0% 7 / 0 / 14
Functions: 50.0% 7 / 0 / 14
Branches: 59.1% 26 / 0 / 44

src/utilities/sql/SqlFileEnums.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_SQL_SQLFILEENUMS_HPP
7 #define UTILITIES_SQL_SQLFILEENUMS_HPP
8
9 #include "../UtilitiesAPI.hpp"
10 #include "../core/Enum.hpp"
11
12 #include <boost/optional.hpp>
13
14 namespace openstudio {
15
16 // clang-format off
17
18 /** \class ReportingFrequency
19 * \brief Frequencies at which report variables may be specified.
20 * \details See the OPENSTUDIO_ENUM documentation in utilities/core/Enum.hpp. The actual
21 * macro call is:
22 * \code
23 OPENSTUDIO_ENUM(ReportingFrequency,
24 ((Detailed)(HVAC System Timestep)(1))
25 ((Timestep)(Zone Timestep))
26 ((Hourly))
27 ((Daily))
28 ((Monthly))
29 ((RunPeriod))
30 ((Annual))
31 );
32 * \endcode */
33
13/22
openstudio::ReportingFrequency::buildStringVec[abi:cxx11](bool):
✓ Branch 0 taken 7 times.
✓ Branch 1 taken 1155 times.
✓ Branch 3 taken 7 times.
✓ Branch 6 taken 3 times.
✓ Branch 7 taken 4 times.
✓ Branch 9 taken 3 times.
✓ Branch 12 taken 3 times.
✓ Branch 17 taken 1155 times.
✓ Branch 20 taken 1155 times.
✓ Branch 23 taken 1162 times.
✓ Branch 24 taken 166 times.
✗ Branch 25 not taken.
✓ Branch 26 taken 166 times.
✗ Branch 27 not taken.
✓ Branch 28 taken 166 times.
openstudio::ReportingFrequency::enumName[abi:cxx11]():
✗ Branch 1 not taken.
openstudio::operator<<(std::ostream&, openstudio::ReportingFrequency 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.
2014 OPENSTUDIO_ENUM(ReportingFrequency,
34 ((Detailed)(HVAC System Timestep)(1))
35 ((Timestep)(Zone Timestep))
36 ((Hourly))
37 ((Daily))
38 ((Monthly))
39 ((RunPeriod)(Run Period))
40 ((Annual))
41 );
42
43 // clang-format on
44
45 using OptionalReportingFrequency = boost::optional<ReportingFrequency>;
46 using ReportingFrequencyVector = std::vector<ReportingFrequency>;
47 using ReportingFrequencySet = std::set<ReportingFrequency>;
48
49 /** \class EnvironmentType
50 * \brief Frequencies at which report variables may be specified.
51 * \details See the OPENSTUDIO_ENUM documentation in utilities/core/Enum.hpp. The actual
52 * macro call is:
53 * \code
54 OPENSTUDIO_ENUM(EnvironmentType,
55 ((DesignDay)(DesignDay)(1))
56 ((DesignRunPeriod))
57 ((WeatherRunPeriod)) );
58 * \endcode */
59
13/22
openstudio::EnvironmentType::buildStringVec[abi:cxx11](bool):
✓ Branch 0 taken 3 times.
✓ Branch 1 taken 3 times.
✓ Branch 3 taken 3 times.
✓ Branch 6 taken 1 time.
✓ Branch 7 taken 2 times.
✓ Branch 9 taken 1 time.
✓ Branch 12 taken 1 time.
✓ Branch 17 taken 3 times.
✓ Branch 20 taken 3 times.
✓ Branch 23 taken 6 times.
✓ Branch 24 taken 2 times.
✗ Branch 25 not taken.
✓ Branch 26 taken 2 times.
✗ Branch 27 not taken.
✓ Branch 28 taken 2 times.
openstudio::EnvironmentType::enumName[abi:cxx11]():
✗ Branch 1 not taken.
openstudio::operator<<(std::ostream&, openstudio::EnvironmentType 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.
22 OPENSTUDIO_ENUM(EnvironmentType, ((DesignDay)(DesignDay)(1))((DesignRunPeriod))((WeatherRunPeriod)));
60
61 using OptionalEnvironmentType = boost::optional<EnvironmentType>;
62
63 } // namespace openstudio
64
65 #endif // UTILITIES_SQL_SQLFILEENUMS_HPP
66