winIDEA SDK
isys::CCoverageSource Class Reference

Description

This class contains information about coverage of a source line in the same way as it is shown on the left edge of winIDEA source code editor.

It contains data from <src>, and <src><al> nodes.

#include <CCoverageData2.h>

Public Types

enum  ESrcLineCoverageMarkers {
  EAreaExecuted , EAreaNotExecuted ,
  EAreaPartiallyExecuted , EConditionBoth ,
  EMixedStateOfMultipleConditions , EConditionNotExecuted ,
  EConditionWasNeverTrue , EConditionWasAlwaysTrue ,
  EOutOfange , EEmpty
}
 Defines types of coverage marker for source lines. More...
 

Public Member Functions

std::string getSourceLineText ()
 Returns source code text in the line.
 
int getSourceLineNumber ()
 Returns the line number.
 
std::string getAddress ()
 Returns address as text.
 
size_t getNumAsmOpCodes ()
 Returns the number of assembler op codes for source line.
 
CCoverageSourceSPtr getAsmOpCodeInfo (int idx)
 This method returns assembler op code coverage info.
 
ESrcLineCoverageMarkers getCoverageMarker ()
 Returns source code coverage marker. More...
 

Member Enumeration Documentation

◆ ESrcLineCoverageMarkers

Defines types of coverage marker for source lines.

These markers correspond to visual coverage markers on the left edge of winIDEA source code editor. Not that one line may contain several object code instructions.

Enumerator
EAreaExecuted 

All instructions in the line were executed (xml text: '0e')

EAreaNotExecuted 

No instructions in the line were executed (xml text: '0n')

EAreaPartiallyExecuted 

Some instructions in the line were executed (xml text: '0m' (mixed))

EConditionBoth 

Line contains a condition, which was executed both ways (xml text: '1b')

EMixedStateOfMultipleConditions 

Line contains multiple conditions, not all of them were executed both ways (xml text: '1m')

EConditionNotExecuted 

Line contains a condition, which was not executed (xml text: '1n')

EConditionWasNeverTrue 

Line contains condition, which was never executed as true (xml text: '1nt')

EConditionWasAlwaysTrue 

Line contains condition, which was never executed as false (xml text: '1t')

EOutOfange 

Debug info is there for this source line but it was not configured for coverage (xml text: 'r')

EEmpty 

There is no debug info for this source line. (xml text: 'e')

Member Function Documentation

◆ getCoverageMarker()

ESrcLineCoverageMarkers isys::CCoverageSource::getCoverageMarker ( )
inline

Returns source code coverage marker.

See CCoverageSource::ESrcLineCoverageMarkers for details.