diff options
author | Alex White <alex.white@oarcorp.com> | 2021-02-25 10:35:39 -0600 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2021-03-30 13:15:58 -0500 |
commit | 4aabd9bbf742f04a53331064dc0692b91d4d3a6c (patch) | |
tree | 09846f0dcf54fdfd69af43b5685b8b3e0ddd8d21 /tester/covoar/DesiredSymbols.cc | |
parent | covoar: Handle periods in symbols from objdump (diff) | |
download | rtems-tools-4aabd9bbf742f04a53331064dc0692b91d4d3a6c.tar.bz2 |
covoar/reports: Add new statistics to summary
The following new statistics have been added to the summary report:
number of unreferenced symbols, total branch paths found, number of
branch paths not executed, and percentage of branch paths covered.
Diffstat (limited to 'tester/covoar/DesiredSymbols.cc')
-rw-r--r-- | tester/covoar/DesiredSymbols.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tester/covoar/DesiredSymbols.cc b/tester/covoar/DesiredSymbols.cc index c97b25c..ffc4f86 100644 --- a/tester/covoar/DesiredSymbols.cc +++ b/tester/covoar/DesiredSymbols.cc @@ -175,6 +175,8 @@ namespace Coverage { s.second.stats.uncoveredBytes++; } } + } else { + stats.unreferencedSymbols++; } } } @@ -470,10 +472,18 @@ namespace Coverage { return stats.branchesNeverTaken; }; + uint32_t DesiredSymbols::getNumberBranchesNotExecuted( void ) const { + return stats.branchesNotExecuted; + }; + uint32_t DesiredSymbols::getNumberUncoveredRanges( void ) const { return stats.uncoveredRanges; }; + uint32_t DesiredSymbols::getNumberUnreferencedSymbols( void ) const { + return stats.unreferencedSymbols; + }; + bool DesiredSymbols::isDesired ( const std::string& symbolName ) const |