|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| __construct ($heading='Coverage Report', $dir='report') | |
| generateReport (&$data) | |
Static Public Member Functions | |
| static | get_summary_info ($type) |
| static | print_summary_info ($type) |
| static | get_link_to_latest ($type) |
| static | print_link_to_latest ($type) |
Protected Member Functions | |
| writeIndexFileTableRow ($fileLink, $realFile, $fileCoverage) | |
| markFile ($phpFile, $fileLink, &$coverageLines) | |
| updateGrandTotals (&$coverageCounts) | |
Definition at line 325 of file simpletestcoveragelib.php.
| __construct | ( | $ | heading = 'Coverage Report', |
| $ | dir = 'report' |
||
| ) |
Definition at line 327 of file simpletestcoveragelib.php.
| generateReport | ( | &$ | data | ) |
Generate the static report
Overrided to generate the serialised object to be displayed inline with the test results.
| &$data | Reference to Coverage Data |
Reimplemented from HtmlCoverageReporter.
Definition at line 395 of file simpletestcoveragelib.php.

| static get_link_to_latest | ( | $ | type | ) | [static] |
Return the html code needed to browse latest code coverage complete report of the given test type
| string | $type | of the test to return last execution summary (dbtest|unittest) |
Definition at line 479 of file simpletestcoveragelib.php.


| static get_summary_info | ( | $ | type | ) | [static] |
Return the html contents for the summary for the last execution of the given test type
| string | $type | of the test to return last execution summary (dbtest|unittest) |
Definition at line 425 of file simpletestcoveragelib.php.


| markFile | ( | $ | phpFile, |
| $ | fileLink, | ||
| &$ | coverageLines | ||
| ) | [protected] |
Mark a source code file based on the coverage data gathered
Overrided to transform names and links to shorter format
| $phpFile | Name of the actual source file |
| $fileLink | Link to the html mark-up file for the $phpFile |
| &$coverageLines | Coverage recording for $phpFile |
Reimplemented from HtmlCoverageReporter.
Definition at line 365 of file simpletestcoveragelib.php.
| static print_link_to_latest | ( | $ | type | ) | [static] |
Print the html code needed to browse latest code coverage complete report of the given test type
| string | $type | of the test to return last execution summary (dbtest|unittest) |
Definition at line 512 of file simpletestcoveragelib.php.

| static print_summary_info | ( | $ | type | ) | [static] |
Print the html contents for the summary for the last execution of the given test type
| string | $type | of the test to return last execution summary (dbtest|unittest) |
Definition at line 468 of file simpletestcoveragelib.php.


| updateGrandTotals | ( | &$ | coverageCounts | ) | [protected] |
Update the grand totals
Overrided to avoid the call to recordFileCoverageInfo() because it has been already executed by writeIndexFile() and cause files to be duplicated in the fileCoverage property
Reimplemented from CoverageReporter.
Definition at line 381 of file simpletestcoveragelib.php.
| writeIndexFileTableRow | ( | $ | fileLink, |
| $ | realFile, | ||
| $ | fileCoverage | ||
| ) | [protected] |
Writes one row in the index.html table to display filename and coverage recording.
Overrided to transform names and links to shorter format
| $fileLink | link to html details file. |
| $realFile | path to real PHP file. |
| $fileCoverage | Coverage recording for that file. |
Reimplemented from HtmlCoverageReporter.
Definition at line 344 of file simpletestcoveragelib.php.