GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 100.0% 10 / 0 / 10
Functions: 100.0% 1 / 0 / 1
Branches: 100.0% 17 / 0 / 17

src/energyplus/ForwardTranslator/ForwardTranslateOutputDebuggingData.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 "../ForwardTranslator.hpp"
7 #include "../../model/Model.hpp"
8
9 #include "../../model/OutputDebuggingData.hpp"
10
11 #include <utilities/idd/Output_DebuggingData_FieldEnums.hxx>
12 // #include "../../utilities/idd/IddEnums.hpp"
13 #include <utilities/idd/IddEnums.hxx>
14
15 using namespace openstudio::model;
16
17 namespace openstudio {
18
19 namespace energyplus {
20
21 2 boost::optional<IdfObject> ForwardTranslator::translateOutputDebuggingData(model::OutputDebuggingData& modelObject) {
22
23
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 IdfObject idfObject = createAndRegisterIdfObject(openstudio::IddObjectType::Output_DebuggingData, modelObject);
24
25 // Report Debugging Data
26
3/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
2 if (modelObject.reportDebuggingData()) {
27
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 idfObject.setString(Output_DebuggingDataFields::ReportDebuggingData, "Yes");
28 } else {
29
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 idfObject.setString(Output_DebuggingDataFields::ReportDebuggingData, "No");
30 }
31
32 // Report During Warmup
33
3/3
✓ Branch 1 taken 2 times.
✓ Branch 3 taken 1 time.
✓ Branch 4 taken 1 time.
2 if (modelObject.reportDuringWarmup()) {
34
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 idfObject.setString(Output_DebuggingDataFields::ReportDuringWarmup, "Yes");
35 } else {
36
2/2
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
2 idfObject.setString(Output_DebuggingDataFields::ReportDuringWarmup, "No");
37 }
38
39
1/1
✓ Branch 1 taken 2 times.
4 return idfObject;
40 2 } // End of translate function
41
42 } // end namespace energyplus
43 } // end namespace openstudio
44