fixed gcov
This commit is contained in:
@@ -2262,9 +2262,11 @@ int SPF_GetGCovInfo(void*& context, int winHandler, short *options, short *projN
|
||||
json info_array = json::array();
|
||||
for (auto& elem : byFile.second)
|
||||
{
|
||||
info_array["line"] = elem.first;
|
||||
info_array["execution"] = elem.second.getExecutedCount();
|
||||
json item;
|
||||
item["line"] = elem.first;
|
||||
item["execution"] = elem.second.getExecutedCount();
|
||||
|
||||
info_array.push_back(item);
|
||||
}
|
||||
fileGCov["lines"] = info_array;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user