File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,6 @@ Date: May 2016
8
8
9
9
\*******************************************************************/
10
10
11
- #include < iostream>
12
-
13
11
#include < algorithm>
14
12
#include < iterator>
15
13
#include < unordered_set>
@@ -112,10 +110,11 @@ Function: coverage_goalst::get_coverage
112
110
113
111
\*******************************************************************/
114
112
115
- void coverage_goalst::get_coverage (const std::string &coverage,
113
+ coverage_goalst coverage_goalst::get_coverage_goals (const std::string &coverage,
116
114
message_handlert &message_handler)
117
115
{
118
116
jsont json;
117
+ coverage_goalst goals;
119
118
source_locationt source_location;
120
119
121
120
// check coverage file
@@ -153,10 +152,11 @@ void coverage_goalst::get_coverage(const std::string &coverage,
153
152
// get the line of each existing goal
154
153
line_number=(*itg)[" sourceLocation" ][" line" ].value ;
155
154
source_location.set_line (line_number);
156
- set_goals (source_location);
155
+ goals. set_goals (source_location);
157
156
}
158
157
}
159
158
}
159
+ return goals;
160
160
}
161
161
162
162
/* ******************************************************************\
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ Date: May 2016
16
16
class coverage_goalst
17
17
{
18
18
public:
19
- void get_coverage (const std::string &coverage,
20
- message_handlert &message_handler);
19
+ static coverage_goalst get_coverage_goals (const std::string &coverage,
20
+ message_handlert &message_handler);
21
21
void set_goals (source_locationt goal);
22
22
bool is_existing_goal (source_locationt source_location);
23
23
You can’t perform that action at this time.
0 commit comments