Lggr
|
Protected Member Functions | |
calculateStatistics () | |
processClasses (\PHP_Token_Stream $tokens) | |
processTraits (\PHP_Token_Stream $tokens) | |
processFunctions (\PHP_Token_Stream $tokens) | |
crap ($ccn, $coverage) | |
Represents a file in the code coverage information tree.
SebastianBergmann\CodeCoverage\Node\File::__construct | ( | $name, | |
AbstractNode | $parent, | ||
array | $coverageData, | ||
array | $testData, | ||
$cacheTokens | |||
) |
Constructor.
string | $name | |
AbstractNode | $parent | |
array | $coverageData | |
array | $testData | |
bool | $cacheTokens |
InvalidArgumentException |
|
protected |
Calculates coverage statistics for the file.
SebastianBergmann\CodeCoverage\Node\File::count | ( | ) |
Returns the number of files in/under this node.
|
protected |
Calculates the Change Risk Anti-Patterns (CRAP) index for a unit of code based on its cyclomatic complexity and percentage of code coverage.
int | $ccn | |
float | $coverage |
SebastianBergmann\CodeCoverage\Node\File::getClasses | ( | ) |
Returns the classes of this node.
Reimplemented from SebastianBergmann\CodeCoverage\Node\AbstractNode.
SebastianBergmann\CodeCoverage\Node\File::getCoverageData | ( | ) |
Returns the code coverage data of this node.
SebastianBergmann\CodeCoverage\Node\File::getFunctions | ( | ) |
Returns the functions of this node.
Reimplemented from SebastianBergmann\CodeCoverage\Node\AbstractNode.
SebastianBergmann\CodeCoverage\Node\File::getLinesOfCode | ( | ) |
Returns the LOC/CLOC/NCLOC of this node.
Reimplemented from SebastianBergmann\CodeCoverage\Node\AbstractNode.
SebastianBergmann\CodeCoverage\Node\File::getNumClasses | ( | ) |
Returns the number of classes.
Reimplemented from SebastianBergmann\CodeCoverage\Node\AbstractNode.
SebastianBergmann\CodeCoverage\Node\File::getNumExecutableLines | ( | ) |
Returns the number of executable lines.
Reimplemented from SebastianBergmann\CodeCoverage\Node\AbstractNode.
SebastianBergmann\CodeCoverage\Node\File::getNumExecutedLines | ( | ) |
Returns the number of executed lines.
Reimplemented from SebastianBergmann\CodeCoverage\Node\AbstractNode.
SebastianBergmann\CodeCoverage\Node\File::getNumFunctions | ( | ) |
Returns the number of functions.
Reimplemented from SebastianBergmann\CodeCoverage\Node\AbstractNode.
SebastianBergmann\CodeCoverage\Node\File::getNumMethods | ( | ) |
Returns the number of methods.
Reimplemented from SebastianBergmann\CodeCoverage\Node\AbstractNode.
SebastianBergmann\CodeCoverage\Node\File::getNumTestedClasses | ( | ) |
Returns the number of tested classes.
Reimplemented from SebastianBergmann\CodeCoverage\Node\AbstractNode.
SebastianBergmann\CodeCoverage\Node\File::getNumTestedFunctions | ( | ) |
Returns the number of tested functions.
Reimplemented from SebastianBergmann\CodeCoverage\Node\AbstractNode.
SebastianBergmann\CodeCoverage\Node\File::getNumTestedMethods | ( | ) |
Returns the number of tested methods.
Reimplemented from SebastianBergmann\CodeCoverage\Node\AbstractNode.
SebastianBergmann\CodeCoverage\Node\File::getNumTestedTraits | ( | ) |
Returns the number of tested traits.
Reimplemented from SebastianBergmann\CodeCoverage\Node\AbstractNode.
SebastianBergmann\CodeCoverage\Node\File::getNumTraits | ( | ) |
Returns the number of traits.
Reimplemented from SebastianBergmann\CodeCoverage\Node\AbstractNode.
SebastianBergmann\CodeCoverage\Node\File::getTestData | ( | ) |
Returns the test data of this node.
SebastianBergmann\CodeCoverage\Node\File::getTraits | ( | ) |
Returns the traits of this node.
Reimplemented from SebastianBergmann\CodeCoverage\Node\AbstractNode.
|
protected |
\PHP_Token_Stream | $tokens |
|
protected |
\PHP_Token_Stream | $tokens |
|
protected |
\PHP_Token_Stream | $tokens |