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% 5 / 0 / 5
Branches: 50.0% 2 / 0 / 4

src/model/ShadingMaterial.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 "ShadingMaterial.hpp"
7 #include "ShadingMaterial_Impl.hpp"
8
9 #include "../utilities/core/Assert.hpp"
10
11 namespace openstudio {
12 namespace model {
13
14 namespace detail {
15
16 25 ShadingMaterial_Impl::ShadingMaterial_Impl(const IdfObject& idfObject, Model_Impl* model, bool keepHandle)
17 25 : FenestrationMaterial_Impl(idfObject, model, keepHandle) {}
18
19 2 ShadingMaterial_Impl::ShadingMaterial_Impl(const openstudio::detail::WorkspaceObject_Impl& other, Model_Impl* model, bool keepHandle)
20 2 : FenestrationMaterial_Impl(other, model, keepHandle) {}
21
22 10 ShadingMaterial_Impl::ShadingMaterial_Impl(const ShadingMaterial_Impl& other, Model_Impl* model, bool keepHandle)
23 10 : FenestrationMaterial_Impl(other, model, keepHandle) {}
24
25 } // namespace detail
26
27 23 ShadingMaterial::ShadingMaterial(IddObjectType type, const Model& model) : FenestrationMaterial(type, model) {
28
1/3
✗ Branch 2 not taken.
✓ Branch 3 taken 23 times.
✗ Branch 5 not taken.
23 OS_ASSERT(getImpl<detail::ShadingMaterial_Impl>());
29 23 }
30
31 /// @cond
32
1/1
✓ Branch 3 taken 45 times.
45 ShadingMaterial::ShadingMaterial(std::shared_ptr<detail::ShadingMaterial_Impl> impl) : FenestrationMaterial(std::move(impl)) {}
33 /// @endcond
34
35 } // namespace model
36 } // namespace openstudio
37