GCC Code Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 85.7% 6 / 0 / 7
Functions: 100.0% 1 / 0 / 1
Branches: 100.0% 5 / 0 / 5

src/utilities/core/Containers.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 "Containers.hpp"
7
8 namespace openstudio {
9
10 1 StringVector eraseEmptyElements(const StringVector& sv) {
11 1 StringVector result;
12
2/2
✓ Branch 5 taken 5 times.
✓ Branch 6 taken 1 time.
6 for (const std::string& str : sv) {
13
2/2
✓ Branch 1 taken 3 times.
✓ Branch 2 taken 2 times.
5 if (!str.empty()) {
14
1/1
✓ Branch 1 taken 3 times.
3 result.push_back(str);
15 }
16 }
17 1 return result;
18 ✗ }
19
20 } // namespace openstudio
21