GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 58.8% 10 / 0 / 17
Functions: 62.5% 5 / 0 / 8
Branches: 28.6% 2 / 0 / 7

src/model/GasLayer.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 "GasLayer.hpp"
7 #include "GasLayer_Impl.hpp"
8
9 #include "../utilities/core/Assert.hpp"
10
11 namespace openstudio {
12 namespace model {
13
14 namespace detail {
15
16 226 GasLayer_Impl::GasLayer_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
17 226 : FenestrationMaterial_Impl(idfObject, model, keepHandle) {}
18
19 32 GasLayer_Impl::GasLayer_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle)
20 32 : FenestrationMaterial_Impl(other, model, keepHandle) {}
21
22 66 GasLayer_Impl::GasLayer_Impl(const GasLayer_Impl& other, Model_Impl* model, bool keepHandle)
23 66 : FenestrationMaterial_Impl(other, model, keepHandle) {}
24
25 ✗ OptionalDouble GasLayer_Impl::getVisibleTransmittance() const {
26 ✗ OptionalDouble od(1.0);
27 ✗ return od;
28 }
29
30 ✗ boost::optional<double> GasLayer_Impl::interiorVisibleAbsorptance() const {
31 ✗ return 0.0;
32 }
33
34 ✗ boost::optional<double> GasLayer_Impl::exteriorVisibleAbsorptance() const {
35 ✗ return 0.0;
36 }
37
38 } // namespace detail
39
40 /// @cond
41 193 GasLayer::GasLayer(IddObjectType type, const Model& model) : FenestrationMaterial(type, model) {
42
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 193 times.
✗ Branch 5 not taken.
193 OS_ASSERT(getImpl<detail::GasLayer_Impl>());
43 193 }
44
45
1/1
✓ Branch 3 taken 40 times.
40 GasLayer::GasLayer(std::shared_ptr<detail::GasLayer_Impl> impl) : FenestrationMaterial(std::move(impl)) {}
46 /// @endcond
47
48 } // namespace model
49 } // namespace openstudio
50