This class contains coverage requirements. More...
#include <CTestCoverageStatistics.h>
Public Types | |
| enum | ECoverageStatSectionId |
| Ids of test specification sections. | |
Public Member Functions | |
| float | getBranchBoth () |
| Returns the ratio of branches to be executed both ways in %. | |
| float | getBranchExecuted () |
| Returns the ratio of branches to be executed in %. | |
| float | getBranchNotTaken () |
| Returns the ratio of branches not to be taken in %. | |
| float | getBranchTaken () |
| Returns the ratio of branches to be taken in %. | |
| float | getBytesExecuted () |
| Returns the ratio of bytes to be executed in %. | |
| int64_t | getExecutionCount () |
| Returns how may times the item was executed. | |
| std::string | getFunctionName () |
| Returns function name. | |
| float | getSourceLinesExecuted () |
| Returns the ratio of source lines to be executed in %. | |
| virtual bool | isEmpty () const |
| This method returns true, if the object contains no data. | |
| virtual void | serialize (const isys::IEmitterSPtr &emitter) |
| Sends contents of this class to emitter. | |
| void | setBranchBoth (const std::string &branchBoth) |
| Sets the number of branches taken both ways in %. | |
| void | setBranchExecuted (const std::string &branchExecuted) |
| Sets the number of branches executed in %. | |
| void | setBranchNotTaken (const std::string &branchNotTaken) |
| Sets the number of branches not taken in %. | |
| void | setBranchTaken (const std::string &branchTaken) |
| Sets the number of branches taken in %. | |
| void | setCodeExecuted (const std::string &codeExecuted) |
| Sets the amount of code executed in %. | |
| void | setFunctionName (const std::string &functionName) |
| Sets the name of the function to be covered. | |
| void | setSourceLinesExecuted (const std::string &codeExecuted) |
| Sets the amount of source lines executed in %. | |
| virtual std::string | toString () |
| Returns object data as YAML string. | |
Static Public Member Functions | |
| static CTestCoverageStatisticsSPtr | cast (const CTestBaseSPtr &testBase) |
| Casts the given object to this class. | |
Protected Member Functions | |
| void | setStaticTagsAsConst () |
| This method is called by all objects which are immediately contained in CTestSpecification, for example CTestCoverage, CTestHIL, ... | |
This class contains coverage requirements.
If function name is not specified, function under test is assumed. This is serializable version of CCoverageStatistics2. This class is aggregated by CTestAnalyzerCoverage (values are specified in percentage) and CTestCoverageResult. All results are set and returned in percentage, which means in range [0%..100%].
|
static |
Casts the given object to this class.
Returns NULL if input is NULL.
| IllegalArgumentException | if input object is not instance of this class. |
| float isys::CTestCoverageStatistics::getBranchBoth | ( | ) |
Returns the ratio of branches to be executed both ways in %.
| float isys::CTestCoverageStatistics::getBranchExecuted | ( | ) |
Returns the ratio of branches to be executed in %.
| float isys::CTestCoverageStatistics::getBranchNotTaken | ( | ) |
Returns the ratio of branches not to be taken in %.
| float isys::CTestCoverageStatistics::getBranchTaken | ( | ) |
Returns the ratio of branches to be taken in %.
| float isys::CTestCoverageStatistics::getBytesExecuted | ( | ) |
Returns the ratio of bytes to be executed in %.
| int64_t isys::CTestCoverageStatistics::getExecutionCount | ( | ) |
Returns how may times the item was executed.
| std::string isys::CTestCoverageStatistics::getFunctionName | ( | ) |
Returns function name.
| float isys::CTestCoverageStatistics::getSourceLinesExecuted | ( | ) |
Returns the ratio of source lines to be executed in %.
|
virtualinherited |
This method returns true, if the object contains no data.
|
virtualinherited |
Sends contents of this class to emitter.
Reimplemented in isys::CLogResult, and isys::CTestEnvironmentConfig.
| void isys::CTestCoverageStatistics::setBranchBoth | ( | const std::string & | branchBoth | ) |
Sets the number of branches taken both ways in %.
| void isys::CTestCoverageStatistics::setBranchExecuted | ( | const std::string & | branchExecuted | ) |
Sets the number of branches executed in %.
| void isys::CTestCoverageStatistics::setBranchNotTaken | ( | const std::string & | branchNotTaken | ) |
Sets the number of branches not taken in %.
| void isys::CTestCoverageStatistics::setBranchTaken | ( | const std::string & | branchTaken | ) |
Sets the number of branches taken in %.
| void isys::CTestCoverageStatistics::setCodeExecuted | ( | const std::string & | codeExecuted | ) |
Sets the amount of code executed in %.
| void isys::CTestCoverageStatistics::setFunctionName | ( | const std::string & | functionName | ) |
Sets the name of the function to be covered.
| void isys::CTestCoverageStatistics::setSourceLinesExecuted | ( | const std::string & | codeExecuted | ) |
Sets the amount of source lines executed in %.
|
virtualinherited |
Returns object data as YAML string.