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%].
|
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 %.
|
|
std::string | getBytesExecutedText () |
| Returns true if MC/DC coverage is required.
|
|
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.
|
|