Changeset 59 for branches/2.2/etc

Show
Ignore:
Timestamp:
04/28/06 14:49:47 (3 years ago)
Author:
mrook
Message:

Merge r23:r57 from trunk

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.2/etc/coverage-frames.xsl

    r1 r59  
    238238                            <a target="classFrame" href="{$link}"><xsl:value-of select="@name"/></a> 
    239239                            <xsl:choose> 
    240                                                                 <xsl:when test="@methodcount=0"> 
     240                                                                <xsl:when test="@totalcount=0"> 
    241241                                                                        <i> (-)</i> 
    242242                                                                </xsl:when> 
    243243                                                                <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> 
    245245                                                                </xsl:otherwise> 
    246246                                                        </xsl:choose> 
     
    292292                <td class="small">Methods: <xsl:value-of select="@methodcount"/></td> 
    293293                <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> 
    294295            </tr> 
    295296        </table>         
     
    299300            <tr> 
    300301                <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> 
    302305            </tr> 
    303306            <tr class="a"> 
    304         <td>Total coverage</td> 
     307               <td><b>Project</b></td> 
    305308                <xsl:call-template name="stats.formatted"/> 
    306309            </tr> 
     
    310313            <tr> 
    311314                <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> 
    313318            </tr> 
    314319            <!-- display packages and sort them via their coverage rate --> 
    315320            <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"/> 
    317322                <tr> 
    318323                  <xsl:call-template name="alternate-row"/> 
     
    380385                            <a href="{@name}.html" target="classFrame"><xsl:value-of select="@name"/></a> 
    381386                            <xsl:choose> 
    382                                                                 <xsl:when test="@methodcount=0"> 
     387                                                                <xsl:when test="@totalcount=0"> 
    383388                                                                        <i> (-)</i> 
    384389                                                                </xsl:when> 
    385390                                                                <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> 
    387392                                </xsl:otherwise> 
    388393                            </xsl:choose> 
     
    411416                    <td class="small">Methods: <xsl:value-of select="@methodcount"/></td> 
    412417                    <td class="small">LOC: <xsl:value-of select="count(class/sourcefile/sourceline)"/></td> 
     418                    <td class="small">Statements: <xsl:value-of select="@statementcount"/></td> 
    413419                </tr> 
    414420            </table>         
     
    418424                <tr> 
    419425                    <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> 
    421429                </tr> 
    422430                <xsl:apply-templates select="." mode="stats"/> 
     
    428436                    <tr> 
    429437                        <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> 
    431441                    </tr> 
    432442                    <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"/> 
    434444                    </xsl:apply-templates> 
    435445                </xsl:if> 
     
    455465                    <td class="small">Methods: <xsl:value-of select="@methodcount"/></td> 
    456466                    <td class="small">LOC: <xsl:value-of select="count(sourcefile/sourceline)"/></td> 
     467                    <td class="small">Statements: <xsl:value-of select="@statementcount"/></td> 
    457468                </tr> 
    458469            </table>         
     
    463474                <tr> 
    464475                    <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> 
    466479                </tr> 
    467480                <tr> 
     
    526539<xsl:template name="stats.formatted"> 
    527540    <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> 
    528551        <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"> 
    529562            <td>-</td> 
    530563            <td> 
     
    538571        <xsl:otherwise> 
    539572            <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%')"/> 
    541574            </td> 
    542575            <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> 
    545578            <table cellspacing="0" cellpadding="0" border="0" width="100%" style="display: inline"> 
    546579                <tr> 
     
    585618            <xsl:if test="@coveredcount>0"> 
    586619                <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> 
    588621                </span> 
    589622            </xsl:if> 
    590623            <xsl:if test="@coveredcount&lt;0"> 
    591624                <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> 
    593626                </span> 
    594627            </xsl:if> 
    595628            <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> 
    597630            </xsl:if> 
    598631        </td>