GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 11.8% 8 / 0 / 68
Functions: 12.1% 4 / 0 / 33
Branches: 3.5% 2 / 0 / 57

src/model/ModelPartitionMaterial.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 "ModelPartitionMaterial.hpp"
7 #include "ModelPartitionMaterial_Impl.hpp"
8
9 #include "../utilities/core/Assert.hpp"
10
11 namespace openstudio {
12 namespace model {
13
14 namespace detail {
15
16 1 ModelPartitionMaterial_Impl::ModelPartitionMaterial_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
17 1 : Material_Impl(idfObject, model, keepHandle) {}
18
19 ✗ ModelPartitionMaterial_Impl::ModelPartitionMaterial_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model,
20 ✗ bool keepHandle)
21 ✗ : Material_Impl(other, model, keepHandle) {}
22
23 1 ModelPartitionMaterial_Impl::ModelPartitionMaterial_Impl(const ModelPartitionMaterial_Impl& other, Model_Impl* model, bool keepHandle)
24 1 : Material_Impl(other, model, keepHandle) {}
25
26 ✗ double ModelPartitionMaterial_Impl::thickness() const {
27 ✗ return 0.0;
28 }
29
30 ✗ double ModelPartitionMaterial_Impl::thermalConductivity() const {
31 ✗ LOG_AND_THROW("Thermal conductivity is not defined for ModelPartitionMaterials.");
32 return 0.0;
33 }
34
35 ✗ double ModelPartitionMaterial_Impl::thermalConductance() const {
36 ✗ LOG_AND_THROW("Thermal conductance is not defined for ModelPartitionMaterials.");
37 return 0.0;
38 }
39
40 ✗ double ModelPartitionMaterial_Impl::thermalResistivity() const {
41 ✗ LOG_AND_THROW("Thermal resistivity is not defined for ModelPartitionMaterials.");
42 return 0.0;
43 }
44
45 ✗ double ModelPartitionMaterial_Impl::thermalResistance() const {
46 ✗ LOG_AND_THROW("Thermal resistance is not defined for ModelPartitionMaterials.");
47 return 0.0;
48 }
49
50 ✗ double ModelPartitionMaterial_Impl::thermalTransmittance() const {
51 ✗ return 1.0;
52 }
53
54 ✗ double ModelPartitionMaterial_Impl::thermalAbsorptance() const {
55 ✗ return 0.0;
56 }
57
58 ✗ double ModelPartitionMaterial_Impl::thermalReflectance() const {
59 ✗ return 0.0;
60 }
61
62 ✗ double ModelPartitionMaterial_Impl::solarTransmittance() const {
63 ✗ return 1.0;
64 }
65
66 ✗ double ModelPartitionMaterial_Impl::solarAbsorptance() const {
67 ✗ return 0.0;
68 }
69
70 ✗ double ModelPartitionMaterial_Impl::solarReflectance() const {
71 ✗ return 0.0;
72 }
73
74 ✗ OptionalDouble ModelPartitionMaterial_Impl::getVisibleTransmittance() const {
75 ✗ OptionalDouble od(1.0);
76 ✗ return od;
77 }
78
79 ✗ double ModelPartitionMaterial_Impl::visibleAbsorptance() const {
80 ✗ return 0.0;
81 }
82
83 ✗ double ModelPartitionMaterial_Impl::visibleReflectance() const {
84 ✗ return 0.0;
85 }
86
87 ✗ bool ModelPartitionMaterial_Impl::setThickness(double /*value*/) {
88 ✗ return false;
89 }
90
91 ✗ bool ModelPartitionMaterial_Impl::setThermalConductivity(double /*value*/) {
92 ✗ return false;
93 }
94
95 ✗ bool ModelPartitionMaterial_Impl::setThermalConductance(double /*value*/) {
96 ✗ return false;
97 }
98
99 ✗ bool ModelPartitionMaterial_Impl::setThermalResistivity(double /*value*/) {
100 ✗ return false;
101 }
102
103 ✗ bool ModelPartitionMaterial_Impl::setThermalResistance(double /*value*/) {
104 ✗ return false;
105 }
106
107 ✗ bool ModelPartitionMaterial_Impl::setThermalTransmittance(double /*value*/) {
108 ✗ return false;
109 }
110
111 ✗ bool ModelPartitionMaterial_Impl::setThermalAbsorptance(double /*value*/) {
112 ✗ return false;
113 }
114
115 ✗ bool ModelPartitionMaterial_Impl::setThermalReflectance(double /*value*/) {
116 ✗ return false;
117 }
118
119 ✗ bool ModelPartitionMaterial_Impl::setSolarTransmittance(double /*value*/) {
120 ✗ return false;
121 }
122
123 ✗ bool ModelPartitionMaterial_Impl::setSolarAbsorptance(double /*value*/) {
124 ✗ return false;
125 }
126
127 ✗ bool ModelPartitionMaterial_Impl::setSolarReflectance(double /*value*/) {
128 ✗ return false;
129 }
130
131 ✗ bool ModelPartitionMaterial_Impl::setVisibleTransmittance(double /*value*/) {
132 ✗ return false;
133 }
134
135 ✗ bool ModelPartitionMaterial_Impl::setVisibleAbsorptance(double /*value*/) {
136 ✗ return false;
137 }
138
139 ✗ bool ModelPartitionMaterial_Impl::setVisibleReflectance(double /*value*/) {
140 ✗ return false;
141 }
142
143 } // namespace detail
144
145 1 ModelPartitionMaterial::ModelPartitionMaterial(IddObjectType type, const Model& model) : Material(type, model) {
146
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 1 time.
✗ Branch 5 not taken.
1 OS_ASSERT(getImpl<detail::ModelPartitionMaterial_Impl>());
147 1 }
148
149 /// @cond
150
1/1
✓ Branch 3 taken 2 times.
2 ModelPartitionMaterial::ModelPartitionMaterial(std::shared_ptr<detail::ModelPartitionMaterial_Impl> impl) : Material(std::move(impl)) {}
151 /// @endcond
152
153 } // namespace model
154 } // namespace openstudio
155