summaryrefslogtreecommitdiffstats
path: root/tester/covoar/ReportsBase.h
diff options
context:
space:
mode:
authorRyan Long <ryan.long@oarcorp.com>2021-07-28 13:20:34 -0400
committerJoel Sherrill <joel@rtems.org>2021-08-03 15:56:53 -0500
commita1d0e5515e0eb706cb530ce1b9f285a6b8afc821 (patch)
treed68dc65b150978ba1a3ce20a9692953ad0c861d3 /tester/covoar/ReportsBase.h
parentRemove input buffer global variables (diff)
downloadrtems-tools-a1d0e5515e0eb706cb530ce1b9f285a6b8afc821.tar.bz2
Remove SymbolsToAnalyze global variable
- Removed SymbolsToAnalyze from app_common and replaced it with the symbolsToAnalyze_m member variable in DesiredSymbols, GcovData, and ObjdumpProcessor - Added a parameter to constructors to initialize symbolsToAnalyze_m - Moved the definition of objdumpLine_t out of ObjdumpProcessor to make it work with DesiredSymbols
Diffstat (limited to 'tester/covoar/ReportsBase.h')
-rw-r--r--tester/covoar/ReportsBase.h33
1 files changed, 23 insertions, 10 deletions
diff --git a/tester/covoar/ReportsBase.h b/tester/covoar/ReportsBase.h
index a0c6a32..a6cf3bc 100644
--- a/tester/covoar/ReportsBase.h
+++ b/tester/covoar/ReportsBase.h
@@ -32,7 +32,8 @@ class ReportsBase {
const std::string& symbolSetName,
Coverage::Explanations& allExplanations,
const std::string& projectName,
- const std::string& outputDirectory
+ const std::string& outputDirectory,
+ const DesiredSymbols& symbolsToAnalyze
);
virtual ~ReportsBase();
@@ -80,16 +81,21 @@ class ReportsBase {
* each symbol which did not achieve 100% coverage
*
* @param[in] fileName identifies the report file name
+ * @param[in] symbolsToAnalyze the symbols to be analyzed
*/
- void WriteSymbolSummaryReport( const std::string& fileName );
+ void WriteSymbolSummaryReport(
+ const std::string& fileName,
+ const Coverage::DesiredSymbols& symbolsToAnalyze
+ );
/*!
* This method produces a sumary report for the overall test run.
*/
static void WriteSummaryReport(
- const std::string& fileName,
- const std::string& symbolSetName,
- const std::string& outputDirectory
+ const std::string& fileName,
+ const std::string& symbolSetName,
+ const std::string& outputDirectory,
+ const Coverage::DesiredSymbols& symbolsToAnalyze
);
/*!
@@ -143,6 +149,11 @@ class ReportsBase {
std::string outputDirectory_m = "";
/*!
+ * This member variable contains the symbols to be analyzed.
+ */
+ const Coverage::DesiredSymbols& symbolsToAnalyze_m;
+
+ /*!
* This method Opens a report file and verifies that it opened
* correctly. Upon failure NULL is returned.
*
@@ -418,13 +429,15 @@ class ReportsBase {
* @param[in] verbose specifies whether to be verbose with output
* @param[in] projectName specifies the name of the project
* @param[in] outputDirectory specifies the directory for the output
+ * @param[in] symbolsToAnalyze the symbols to be analyzed
*/
void GenerateReports(
- const std::string& symbolSetName,
- Coverage::Explanations& allExplanations,
- bool verbose,
- const std::string& projectName,
- const std::string& outputDirectory
+ const std::string& symbolSetName,
+ Coverage::Explanations& allExplanations,
+ bool verbose,
+ const std::string& projectName,
+ const std::string& outputDirectory,
+ const Coverage::DesiredSymbols& symbolsToAnalyze
);
}