GCC Code Coverage Report


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

src/energyplus/ForwardTranslator/ForwardTranslateOutputSchedules.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/OutputSchedules.hpp"
10
11 #include <utilities/idd/Output_Schedules_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::translateOutputSchedules(OutputSchedules& modelObject) {
22
23
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 IdfObject idfObject = createAndRegisterIdfObject(openstudio::IddObjectType::Output_Schedules, modelObject);
24
25
2/2
✓ Branch 1 taken 2 times.
✓ Branch 4 taken 2 times.
2 idfObject.setString(Output_SchedulesFields::KeyField, modelObject.keyField());
26
27
1/1
✓ Branch 1 taken 2 times.
4 return idfObject;
28 2 }
29
30 } // namespace energyplus
31
32 } // namespace openstudio
33