GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 40.6% 13 / 0 / 32
Functions: 38.5% 5 / 0 / 13
Branches: 33.3% 7 / 0 / 21

src/model/WindowDataFile.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 "WindowDataFile.hpp"
7 #include "WindowDataFile_Impl.hpp"
8
9 #include "Material.hpp"
10 #include "Material_Impl.hpp"
11 #include "ModelExtensibleGroup.hpp"
12
13 #include <utilities/idd/OS_Construction_WindowDataFile_FieldEnums.hxx>
14 #include <utilities/idd/IddEnums.hxx>
15
16 #include "../utilities/core/Assert.hpp"
17
18 namespace openstudio {
19 namespace model {
20
21 namespace detail {
22
23 1 WindowDataFile_Impl::WindowDataFile_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
24 1 : ConstructionBase_Impl(idfObject, model, keepHandle) {
25
4/6
✓ Branch 1 taken 1 time.
✓ Branch 4 taken 1 time.
✓ Branch 7 taken 1 time.
✗ Branch 10 not taken.
✓ Branch 11 taken 1 time.
✗ Branch 13 not taken.
1 OS_ASSERT(idfObject.iddObject().type() == WindowDataFile::iddObjectType());
26 1 }
27
28 ✗ WindowDataFile_Impl::WindowDataFile_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle)
29 ✗ : ConstructionBase_Impl(other, model, keepHandle) {
30 ✗ OS_ASSERT(other.iddObject().type() == WindowDataFile::iddObjectType());
31 ✗ }
32
33 1 WindowDataFile_Impl::WindowDataFile_Impl(const WindowDataFile_Impl& other, Model_Impl* model, bool keepHandle)
34 1 : ConstructionBase_Impl(other, model, keepHandle) {}
35
36 ✗ const std::vector<std::string>& WindowDataFile_Impl::outputVariableNames() const {
37 ✗ static const std::vector<std::string> result;
38 ✗ return result;
39 }
40
41 ✗ IddObjectType WindowDataFile_Impl::iddObjectType() const {
42 ✗ return WindowDataFile::iddObjectType();
43 }
44
45 ✗ bool WindowDataFile_Impl::isOpaque() const {
46 ✗ return false;
47 }
48
49 ✗ bool WindowDataFile_Impl::isFenestration() const {
50 ✗ return true;
51 }
52
53 ✗ bool WindowDataFile_Impl::isSolarDiffusing() const {
54 ✗ return true;
55 }
56
57 ✗ bool WindowDataFile_Impl::isModelPartition() const {
58 ✗ return false;
59 }
60
61 ✗ int WindowDataFile_Impl::renderingColorIndex() const {
62 ✗ return OS_Construction_WindowDataFileFields::SurfaceRenderingName;
63 }
64
65 } // namespace detail
66
67 1 WindowDataFile::WindowDataFile(const Model& model) : ConstructionBase(WindowDataFile::iddObjectType(), model) {
68
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 1 time.
✗ Branch 5 not taken.
1 OS_ASSERT(getImpl<detail::WindowDataFile_Impl>());
69 1 }
70
71 7602 IddObjectType WindowDataFile::iddObjectType() {
72
1/1
✓ Branch 1 taken 7602 times.
7602 IddObjectType result(IddObjectType::OS_Construction_WindowDataFile);
73 7602 return result;
74 }
75
76 /// @cond
77
1/1
✓ Branch 3 taken 2 times.
2 WindowDataFile::WindowDataFile(std::shared_ptr<detail::WindowDataFile_Impl> impl) : ConstructionBase(std::move(impl)) {}
78 /// @endcond
79
80 } // namespace model
81 } // namespace openstudio
82