EXSWHTEC-223 - Update Coverage tool (#339)

- Apply clang-format on Coverage tool and add blue color for deprecated Modules
- Change color from blue to gray for deprecated modules
- Adjust the color of green
This commit is contained in:
milos-mozetic
2023-07-11 10:40:40 +02:00
کامیت شده توسط GitHub
والد bf50c2d2d8
کامیت 0c7fa43b5e
12فایلهای تغییر یافته به همراه1335 افزوده شده و 261 حذف شده
+11 -2
مشاهده پرونده
@@ -23,6 +23,7 @@ THE SOFTWARE.
#include <iostream>
#include <vector>
#include <sstream>
#include <algorithm>
/*
Helper class used to store information in what file has HIP API been detected,
@@ -40,6 +41,9 @@ Helper class used to store information in what file has the API Test Case been d
and on what line of code in that file.
*/
class TestCaseOccurrence : public FileOccurrence {
friend bool operator==(const TestCaseOccurrence& l_test, const TestCaseOccurrence& r_test);
friend bool operator<(const TestCaseOccurrence& l_test, const TestCaseOccurrence& r_test);
public:
std::string test_case_name;
TestCaseOccurrence(std::string test_case_name, std::string file_name, int line_number);
@@ -55,18 +59,23 @@ class HipAPI {
friend bool operator<(const HipAPI& l_hip_api, const HipAPI& r_hip_api);
public:
HipAPI(std::string api_name, bool deprecated_flag, std::string api_group_name);
HipAPI(std::string api_name, bool deprecated_flag, std::string api_group_name,
std::string file_restriction = "");
std::string getName() const;
std::string getGroupName() const;
int getNumberOfCalls() const;
int getNumberOfTestCases() const;
std::vector<TestCaseOccurrence> getTestCases() const;
void addFileOccurrence(FileOccurrence file_occurence);
void addTestCase(TestCaseOccurrence test_case);
bool isDeprecated() const;
std::string getBasicStatsXML() const;
std::string createHTMLReport() const;
std::string getFileRestriction() const;
std::vector<std::string> device_groups;
private:
std::string api_name;
std::string file_restriction;
int number_of_calls;
bool deprecated;
std::string api_group_name;