GCC Code Coverage Report


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

src/alfalfa/AlfalfaComponentBase.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 "AlfalfaComponentBase.hpp"
7
8 namespace openstudio {
9 namespace alfalfa {
10
11 111 bool AlfalfaComponentBase::canInput() const {
12
8/8
✓ Branch 1 taken 111 times.
✓ Branch 4 taken 111 times.
✓ Branch 7 taken 43 times.
✓ Branch 8 taken 68 times.
✓ Branch 10 taken 43 times.
✓ Branch 13 taken 43 times.
✓ Branch 16 taken 1 time.
✓ Branch 17 taken 42 times.
111 return capability() == AlfalfaComponentCapability::Bidirectional || capability() == AlfalfaComponentCapability::Input;
13 }
14
15 150 bool AlfalfaComponentBase::canOutput() const {
16
8/8
✓ Branch 1 taken 150 times.
✓ Branch 4 taken 150 times.
✓ Branch 7 taken 84 times.
✓ Branch 8 taken 66 times.
✓ Branch 10 taken 84 times.
✓ Branch 13 taken 84 times.
✓ Branch 16 taken 83 times.
✓ Branch 17 taken 1 time.
150 return capability() == AlfalfaComponentCapability::Bidirectional || capability() == AlfalfaComponentCapability::Output;
17 }
18
19 } // namespace alfalfa
20 } // namespace openstudio
21