RCS file: /usr1/CVS/rtems-testing/covoar/ReportsHtml.cc,v
retrieving revision 1.4
diff -u -8 -p -r1.4 ReportsHtml.cc
|
|
namespace Coverage { |
198 | 198 | TABLE_HEADER_CLASS "\">\n" |
199 | 199 | "<thead>\n" |
200 | 200 | "<tr>\n" |
201 | 201 | "<th class=\"table-sortable:default\" align=\"left\">Symbol</th>\n" |
202 | 202 | "<th class=\"table-sortable:default\" align=\"left\">Line</th>\n" |
203 | 203 | "<th class=\"table-filterable table-sortable:default\" align=\"left\">File</th>\n" |
204 | 204 | "<th class=\"table-sortable:numeric\" align=\"left\">Size </br>Bytes</th>\n" |
205 | 205 | "<th class=\"table-sortable:default\" align=\"left\">Reason</th>\n" |
| 206 | "<th class=\"table-sortable:default\" align=\"left\">Taken / Not Taken</th>\n" |
206 | 207 | "<th class=\"table-filterable table-sortable:default\" align=\"left\">Classification</th>\n" |
207 | 208 | "<th class=\"table-sortable:default\" align=\"left\">Explanation</th>\n" |
208 | 209 | "</tr>\n" |
209 | 210 | "</thead>\n" |
210 | 211 | "<tbody>\n", |
211 | 212 | asctime( localtime(×tamp_m) ) |
212 | 213 | ); |
213 | 214 | } |
… |
… |
namespace Coverage { |
503 | 504 | unsigned int count, |
504 | 505 | Coverage::DesiredSymbols::symbolSet_t::iterator symbolPtr, |
505 | 506 | Coverage::CoverageRanges::ranges_t::iterator rangePtr |
506 | 507 | ) |
507 | 508 | { |
508 | 509 | const Coverage::Explanation* explanation; |
509 | 510 | std::string temp; |
510 | 511 | int i; |
| 512 | uint32_t bAddress = 0; |
| 513 | uint32_t lowAddress = 0; |
| 514 | Coverage::CoverageMapBase* theCoverageMap = NULL; |
511 | 515 | |
512 | 516 | // Mark the background color different for odd and even lines. |
513 | 517 | if ( ( count%2 ) != 0 ) |
514 | 518 | fprintf( report, "<tr class=\"covoar-tr-odd\">\n"); |
515 | 519 | else |
516 | 520 | fprintf( report, "<tr>\n"); |
517 | 521 | |
518 | 522 | // symbol |
… |
… |
namespace Coverage { |
555 | 559 | ); |
556 | 560 | else if (rangePtr->reason == |
557 | 561 | Coverage::CoverageRanges::UNCOVERED_REASON_BRANCH_NEVER_TAKEN) |
558 | 562 | fprintf( |
559 | 563 | report, |
560 | 564 | "<td class=\"covoar-td\" align=\"center\">Never Taken</td>\n" |
561 | 565 | ); |
562 | 566 | |
| 567 | // Taken / Not taken counts |
| 568 | lowAddress = rangePtr->lowAddress; |
| 569 | bAddress = symbolPtr->second.baseAddress; |
| 570 | theCoverageMap = symbolPtr->second.unifiedCoverageMap; |
| 571 | fprintf( |
| 572 | report, |
| 573 | "<td class=\"covoar-td\" align=\"center\">%d / %d</td>\n", |
| 574 | theCoverageMap->getWasTaken( lowAddress - bAddress ), |
| 575 | theCoverageMap->getWasNotTaken( lowAddress - bAddress ) |
| 576 | ); |
| 577 | |
563 | 578 | // See if an explanation is available and write the Classification and |
564 | 579 | // the Explination Columns. |
565 | 580 | explanation = AllExplanations->lookupExplanation( rangePtr->lowSourceLine ); |
566 | 581 | if ( !explanation ) { |
567 | | // Write Classification |
| 582 | // Write Classificationditr->second.baseAddress |
568 | 583 | fprintf( |
569 | 584 | report, |
570 | 585 | "<td class=\"covoar-td\" align=\"center\">NONE</td>\n" |
571 | 586 | "<td class=\"covoar-td\" align=\"center\">No Explanation</td>\n" |
572 | 587 | ); |
573 | 588 | } else { |
574 | 589 | char explanationFile[48]; |
575 | 590 | sprintf( explanationFile, "explanation%d.html", rangePtr->id ); |