diff options
-rw-r--r-- | tester/covoar/ReportsBase.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tester/covoar/ReportsBase.cc b/tester/covoar/ReportsBase.cc index bc05037..219e5af 100644 --- a/tester/covoar/ReportsBase.cc +++ b/tester/covoar/ReportsBase.cc @@ -3,6 +3,7 @@ #include <errno.h> #include <sys/stat.h> #include <sys/types.h> +#include <assert.h> #include <iomanip> #include <sstream> @@ -231,6 +232,10 @@ void ReportsBase::WriteAnnotatedReport( const std::string& fileName ) continue; } + // uncoveredRanges and uncoveredBranches are always allocated as a pair + // so both are NULL or both are not NULL. + assert( info.uncoveredRanges != NULL && info.uncoveredBranches != NULL ); + // If uncoveredRanges and uncoveredBranches are empty, then everything // must have been covered for this symbol. Just skip it. if ( |