This class contains information about coverage area (function or data), which coverage has been measured. More...
#include <CCoverageData2.h>
Public Types | |
| enum | EAreaType { EAnyArea , EImages , EImage , EFolder , EModule , EFunction , ESrcLine , EAsm , ERange , ERanges } |
| Defines possible area types. More... | |
Public Member Functions | |
| std::string | getAreaName () const |
| Returns area name, for example source file name, function name, source line text, ... | |
| EAreaType | getAreaType () |
| Returns coverage area type. | |
| CCoverageStatistic2AsmSPtr | getAsmLine (int idx) |
| Returns ASM info aththe given index for this node. | |
| int | getBytesAll () const |
| Returns the number of object code bytes in area. | |
| int | getBytesExecuted () const |
| Returns the number of executed object code bytes in area. | |
| int | getCallCount () const |
| Returns the number of all calls in a range, function, module, ... | |
| CCoverageStatistic2SPtr | getChild (int idx) |
Returns child area for the given index (available only when complete file is loaded to memory (method createInstance() was called with isLoadDataInMemory = true)). | |
| int | getConditionsAll () const |
| Returns the number of object code conditions in area. | |
| int | getConditionsBoth () const |
| Returns the number of object code conditions which executed both ways. | |
| int | getConditionsExecuted () const |
Returns the number of object code conditions which executed as true. | |
| int | getConditionsFalse () const |
Returns the number of object code conditions which executed as false. | |
| int | getConditionsTrue () const |
Returns the number of object code conditions which executed as true. | |
| int | getExecutedCallCount () const |
| Returns the number of executed calls in a range, function, module, ... | |
| int | getExecutionCount () const |
| Returns execution count. | |
| int | getItemsCount () const |
| Returns items count. | |
| virtual int | getLineNumber () |
| Returns source line number (this method is available only for areas of type CCoverageStatistic2::ESrcLine). | |
| int | getLinesAll () const |
| Returns the number of all source code lines in area. | |
| int | getLinesExecuted () const |
| Returns the number of executed source code lines in area. | |
| size_t | getNumAsmLines () |
| Returns the number of lines with ASM info for this node. | |
| size_t | getNumChildren () |
Returns the number of children areas, for example the number of source files in a folder (use only when complete file is loaded to memory (method createInstance() was called with isLoadDataInMemory = true)). | |
| virtual size_t | getNumSourceLines () |
| This method returns the number of source lines in area of type CCoverageStatistic2::EModule. | |
| CCoverageStatistic2SPtr | getParent () |
| Returns parent of this statistic. | |
| virtual std::string | getRelPath () |
| Returns relative path. | |
| virtual CCoverageSourceSPtr | getSourceLineInfo (int idx) |
| This method returns source line coverage info (available only for areas of type CCoverageStatistic2::EModule). | |
| virtual std::string | getTextOrAbsPath () |
| Returns source line text for CCoverageStatistic2::ESrcLine areas, and absolute path for CCoverageStatistic2::EFolder and CCoverageStatistic2::EModule areas. | |
Static Public Member Functions | |
| static std::string | areaType2Str (EAreaType areaType) |
| Returns string representation of the given enum. | |
This class contains information about coverage area (function or data), which coverage has been measured.
Defines possible area types.
|
inline |
Returns coverage area type.
Python example: test_get_iterator.py
|
inline |
Returns child area for the given index (available only when complete file is loaded to memory (method createInstance() was called with isLoadDataInMemory = true)).
Python example: test_get_iterator.py
|
inline |
Returns execution count.
For example, if this is coverage statistics for a module, this method returns number of functions in module called at least once. For function this is number of calls of a function, for lines this is number of executions of a line.
|
inline |
Returns items count.
For example, if this is coverage statistics for a module, this method returns number of all functions in a module. For functions this is number of lines in a function.
|
virtual |
Returns source line number (this method is available only for areas of type CCoverageStatistic2::ESrcLine).
| IllegalStateException | if this is not line area. |
|
inline |
Returns the number of children areas, for example the number of source files in a folder (use only when complete file is loaded to memory (method createInstance() was called with isLoadDataInMemory = true)).
Python example: test_get_iterator.py
|
virtual |
This method returns the number of source lines in area of type CCoverageStatistic2::EModule.
| IllegalStateException | if this is not module area. |
|
inline |
Returns parent of this statistic.
Hierarchy parentArea -> childrenAreas is defined as:
images -> image -> folder -> module -> function -> line -> asm -> range Parent information is available only when complete file is loaded into memory. If CCoverageData2::createInstance() was called with isLoadDataInMemory = false, then this method always returns null reference.
|
virtual |
Returns relative path.
This method is available only for folder and module areas.
| IllegalStateException | if this is not folder or module area. |
|
virtual |
This method returns source line coverage info (available only for areas of type CCoverageStatistic2::EModule).
| IllegalStateException | if this is not module area. |
|
virtual |
Returns source line text for CCoverageStatistic2::ESrcLine areas, and absolute path for CCoverageStatistic2::EFolder and CCoverageStatistic2::EModule areas.
This method is not available for areas of other type.
| IllegalStateException | if this is not line, folder or module area. |