FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Public Member Functions | |
__construct ($Path=NULL, $notesPath=NULL) | |
parseResultsFile ($file) | |
globdata ($results, $moData) | |
parseLicenseResults ($FD) | |
parseLicenseTotals ($FD) | |
suiteSummary ($suite) | |
Public Attributes | |
$Date | |
$Time | |
$Svn | |
$resultsFile = NULL | |
$resultsPath = NULL | |
Protected Member Functions | |
getException ($suite) | |
getFailures ($suite) | |
getResult ($FD) | |
getSuite ($FD, $line) | |
Protected Attributes | |
$results | |
Private Member Functions | |
parseDateTime ($line) | |
parseSuiteName ($string) | |
parseResults ($string) | |
parseElapseTime ($string) | |
Private Attributes | |
$testRuns | |
$smarty | |
Report class
string | $path | the fully qualified path to the results file |
Created on Dec 12, 2008
Definition at line 22 of file reportClass.php.
|
protected |
getException
Find exceptions in the results
string | $suite | the results for a particular test suite. |
Definition at line 62 of file reportClass.php.
|
protected |
getFailures
Find test failures in the results, capture the first 2 errors, the rest are usually a result of the first 1 or 2.
string | $suite | the results for a particular test suite. |
Definition at line 101 of file reportClass.php.
|
protected |
getResult
using the open file descriptor, read from the file and create a space seperated string of results. A result is everything up to the string <--—>.
resource | $FD | opened file resource to the results file |
Definition at line 236 of file reportClass.php.
|
protected |
getSuite
Gather all the lines in the results file associated with the suite output.
resource | $FD,open | file positioned at the start of a suite |
string | $line | the line that matched the start of the suite |
Definition at line 263 of file reportClass.php.
TestReport::globdata | ( | $results, | |
$moData | |||
) |
globdata
Parse the data and then put all the data into one big array and then let smarty display it
array | $results | the data array to add to |
array | $moData | the data array to glob onto the other array |
Definition at line 303 of file reportClass.php.
|
private |
parseDateTime
Parse the start line from the test suite output, return the date and time
string | $line | the line to parse |
Definition at line 341 of file reportClass.php.
|
private |
parseElapseTime
Given a string that represents the elapse time printed by the fossology tests, parse it and return a string in the form hh:mm:ss.
string | $string |
Definition at line 490 of file reportClass.php.
TestReport::parseLicenseResults | ( | $FD | ) |
parseLicenseResults
read the results file and parse it.
resource | $FD | opened file resource. |
Definition at line 367 of file reportClass.php.
TestReport::parseLicenseTotals | ( | $FD | ) |
parseLicenseTotals
parse the liscense total file
resource | $FD | opened file descriptor |
Definition at line 409 of file reportClass.php.
|
private |
parseResults
parse a line of text that represents simpletest test result line. Return an associative array with passes, failures and exceptions as the keys,
string | $string | the string to parse |
Definition at line 460 of file reportClass.php.
TestReport::parseResultsFile | ( | $file | ) |
gatherData
read a file and return the number of passes, failures,exceptions and elapse time.
Set attributes Date and Time.
Definition at line 159 of file reportClass.php.
|
private |
parseSuiteName
parse a line of text, return the 2nd and 3rd token as a hyphonated name.
string | $string | the string to parse |
Definition at line 438 of file reportClass.php.
TestReport::suiteSummary | ( | $suite | ) |
suiteSummary
produce a summary list from the input:
string | $suite | the suite output as one long string. |
Definition at line 529 of file reportClass.php.