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();
|
json info_array = json::array();
|
||||||
for (auto& elem : byFile.second)
|
for (auto& elem : byFile.second)
|
||||||
{
|
{
|
||||||
info_array["line"] = elem.first;
|
json item;
|
||||||
info_array["execution"] = elem.second.getExecutedCount();
|
item["line"] = elem.first;
|
||||||
|
item["execution"] = elem.second.getExecutedCount();
|
||||||
|
|
||||||
|
info_array.push_back(item);
|
||||||
}
|
}
|
||||||
fileGCov["lines"] = info_array;
|
fileGCov["lines"] = info_array;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user