Changeset 59 for branches/2.2/etc
- Timestamp:
- 04/28/06 14:49:47 (3 years ago)
- Files:
-
- branches/2.2/etc/coverage-frames.xsl (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/2.2/etc/coverage-frames.xsl
r1 r59 238 238 <a target="classFrame" href="{$link}"><xsl:value-of select="@name"/></a> 239 239 <xsl:choose> 240 <xsl:when test="@ methodcount=0">240 <xsl:when test="@totalcount=0"> 241 241 <i> (-)</i> 242 242 </xsl:when> 243 243 <xsl:otherwise> 244 <i> (<xsl:value-of select="format-number(@ methodscovered div @methodcount, '0.0%')"/>)</i>244 <i> (<xsl:value-of select="format-number(@totalcovered div @totalcount, '0.0%')"/>)</i> 245 245 </xsl:otherwise> 246 246 </xsl:choose> … … 292 292 <td class="small">Methods: <xsl:value-of select="@methodcount"/></td> 293 293 <td class="small">LOC: <xsl:value-of select="count(package/class/sourcefile/sourceline)"/></td> 294 <td class="small">Statements: <xsl:value-of select="@statementcount"/></td> 294 295 </tr> 295 296 </table> … … 299 300 <tr> 300 301 <th width="100%" nowrap="nowrap"></th> 301 <th width="350" colspan="2" nowrap="nowrap">Methods covered</th> 302 <th>Statements</th> 303 <th>Methods</th> 304 <th width="350" colspan="2" nowrap="nowrap">Total coverage</th> 302 305 </tr> 303 306 <tr class="a"> 304 <td>Total coverage</td>307 <td><b>Project</b></td> 305 308 <xsl:call-template name="stats.formatted"/> 306 309 </tr> … … 310 313 <tr> 311 314 <th width="100%">Packages</th> 312 <th width="350" colspan="2" nowrap="nowrap">Methods covered</th> 315 <th>Statements</th> 316 <th>Methods</th> 317 <th width="350" colspan="2" nowrap="nowrap">Total coverage</th> 313 318 </tr> 314 319 <!-- display packages and sort them via their coverage rate --> 315 320 <xsl:for-each select="package"> 316 <xsl:sort data-type="number" select="@ methodscovered div @methodcount"/>321 <xsl:sort data-type="number" select="@totalcovered div @totalcount"/> 317 322 <tr> 318 323 <xsl:call-template name="alternate-row"/> … … 380 385 <a href="{@name}.html" target="classFrame"><xsl:value-of select="@name"/></a> 381 386 <xsl:choose> 382 <xsl:when test="@ methodcount=0">387 <xsl:when test="@totalcount=0"> 383 388 <i> (-)</i> 384 389 </xsl:when> 385 390 <xsl:otherwise> 386 <i>(<xsl:value-of select="format-number(@ methodscovered div @methodcount, '0.0%')"/>)</i>391 <i>(<xsl:value-of select="format-number(@totalcovered div @totalcount, '0.0%')"/>)</i> 387 392 </xsl:otherwise> 388 393 </xsl:choose> … … 411 416 <td class="small">Methods: <xsl:value-of select="@methodcount"/></td> 412 417 <td class="small">LOC: <xsl:value-of select="count(class/sourcefile/sourceline)"/></td> 418 <td class="small">Statements: <xsl:value-of select="@statementcount"/></td> 413 419 </tr> 414 420 </table> … … 418 424 <tr> 419 425 <th width="100%">Package</th> 420 <th width="350" colspan="2" nowrap="nowrap">Methods covered</th> 426 <th>Statements</th> 427 <th>Methods</th> 428 <th width="350" colspan="2" nowrap="nowrap">Total coverage</th> 421 429 </tr> 422 430 <xsl:apply-templates select="." mode="stats"/> … … 428 436 <tr> 429 437 <th width="100%">Classes</th> 430 <th width="350" colspan="2" nowrap="nowrap">Methods covered</th> 438 <th>Statements</th> 439 <th>Methods</th> 440 <th width="350" colspan="2" nowrap="nowrap">Total coverage</th> 431 441 </tr> 432 442 <xsl:apply-templates select="class" mode="stats"> 433 <xsl:sort data-type="number" select="@ methodscovered div @methodcount"/>443 <xsl:sort data-type="number" select="@totalcovered div @totalcount"/> 434 444 </xsl:apply-templates> 435 445 </xsl:if> … … 455 465 <td class="small">Methods: <xsl:value-of select="@methodcount"/></td> 456 466 <td class="small">LOC: <xsl:value-of select="count(sourcefile/sourceline)"/></td> 467 <td class="small">Statements: <xsl:value-of select="@statementcount"/></td> 457 468 </tr> 458 469 </table> … … 463 474 <tr> 464 475 <th width="100%">Source file</th> 465 <th width="250" colspan="2" nowrap="nowrap">Methods covered</th> 476 <th>Statements</th> 477 <th>Methods</th> 478 <th width="250" colspan="2" nowrap="nowrap">Total coverage</th> 466 479 </tr> 467 480 <tr> … … 526 539 <xsl:template name="stats.formatted"> 527 540 <xsl:choose> 541 <xsl:when test="@statementcount=0"> 542 <td>-</td> 543 </xsl:when> 544 <xsl:otherwise> 545 <td> 546 <xsl:value-of select="format-number(@statementscovered div @statementcount,'0.0%')"/> 547 </td> 548 </xsl:otherwise> 549 </xsl:choose> 550 <xsl:choose> 528 551 <xsl:when test="@methodcount=0"> 552 <td>-</td> 553 </xsl:when> 554 <xsl:otherwise> 555 <td> 556 <xsl:value-of select="format-number(@methodscovered div @methodcount,'0.0%')"/> 557 </td> 558 </xsl:otherwise> 559 </xsl:choose> 560 <xsl:choose> 561 <xsl:when test="@totalcount=0"> 529 562 <td>-</td> 530 563 <td> … … 538 571 <xsl:otherwise> 539 572 <td> 540 <xsl:value-of select="format-number(@ methodscovered div @methodcount,'0.0%')"/>573 <xsl:value-of select="format-number(@totalcovered div @totalcount,'0.0%')"/> 541 574 </td> 542 575 <td> 543 <xsl:variable name="leftwidth"><xsl:value-of select="format-number((@ methodscovered * 200) div @methodcount,'0')"/></xsl:variable>544 <xsl:variable name="rightwidth"><xsl:value-of select="format-number(200 - (@ methodscovered * 200) div @methodcount,'0')"/></xsl:variable>576 <xsl:variable name="leftwidth"><xsl:value-of select="format-number((@totalcovered * 200) div @totalcount,'0')"/></xsl:variable> 577 <xsl:variable name="rightwidth"><xsl:value-of select="format-number(200 - (@totalcovered * 200) div @totalcount,'0')"/></xsl:variable> 545 578 <table cellspacing="0" cellpadding="0" border="0" width="100%" style="display: inline"> 546 579 <tr> … … 585 618 <xsl:if test="@coveredcount>0"> 586 619 <span class="srcLine"> 587 <pre class="srcLine"><xsl:value-of select="." disable-output-escaping="yes"/></pre>620 <pre class="srcLine"><xsl:value-of select="."/></pre> 588 621 </span> 589 622 </xsl:if> 590 623 <xsl:if test="@coveredcount<0"> 591 624 <span class="srcLineHighlight"> 592 <pre class="srcLine"><xsl:value-of select="." disable-output-escaping="yes"/></pre>625 <pre class="srcLine"><xsl:value-of select="."/></pre> 593 626 </span> 594 627 </xsl:if> 595 628 <xsl:if test="@coveredcount=0"> 596 <pre class="srcLine"><xsl:value-of select="." disable-output-escaping="yes"/></pre>629 <pre class="srcLine"><xsl:value-of select="."/></pre> 597 630 </xsl:if> 598 631 </td>
