winIDEA SDK
|
This interface provides access to winIDEA coverage functionality.
#include <i_Connect.h>
Inherits IUnknown.
Public Types | |
enum | EErrorCode { errorOK , errorInternal , errorNotImplemented , errorInvalidParameter , errorInvalidRangeset , errorUnsuportedCoverageType } |
Defines constants describing test case status. More... | |
enum | EInfoFlags { ifGetCapabilities = 0x00000001 , ifGetType = 0x00000002 } |
The type of information, which can be returned by GetInfo(). More... | |
enum | EInfoCapabilities { icAvailable = 0x00000001 , icBranches = 0x00000002 } |
Describes the coverage capabilities returned by GetInfo(), if dwInfoFlags was set to EInfoFlags::ifGetCapabilities. More... | |
enum | EInfoType { itHardware = 1 , itOffline = 2 } |
Describes the available coverage types returned by GetInfo(), if dwInfoFlags was set to EInfoFlags::ifGetType. More... | |
enum | EConfigFlags { cfNOP = 0x00000000 , cfSetConfigScope = 0x00000001 , cfSetConfigLevel = 0x00000002 , cfSetConfigOperation = 0x00000003 , cfAddRangeset = 0x00000004 , cfSetRangesetScope = 0x00000005 , cfAddRangesetExcludeFolder = 0x00000006 , cfAddRangesetExcludeModule = 0x00000007 , cfAddRangesetExcludeFunction = 0x00000008 , cfAddRangesetExcludeItem = 0x00000009 , cfAddRangesetIncludeFolder = 0x0000000A , cfAddRangesetIncludeModule = 0x0000000B , cfAddRangesetIncludeFunction = 0x0000000C , cfAddRangesetIncludeItem = 0x0000000D , cfSetActiveRangeset = 0x0000000E , cfSetActiveRangesetByIndex = 0x0000000F , cfClearConfiguration = 0x00000010 } |
Defines coverage configuration parameters set by function SetConfig(). More... | |
enum | EConfigScope { cfgsAllDownloaded = 0x00000001 , cfgsEntireMemory = 0x00000002 , cfgsUseRangeset = 0x00000003 } |
Defines constants, which define coverage scope. More... | |
enum | EConfigLevel { cfglStatementCoverage = 0x00000001 , cfglDecisionCoverage = 0x00000002 } |
Defines coverage level, values may be ORed together. More... | |
enum | EConfigOperation { cfgoAutoStartWithCPU = 0x00000001 , cfgoAutoUpdateOnStop = 0x00000002 } |
Defines constants, which define coverage operation mode. More... | |
enum | ERangesetScope { rssAllDownloadedCode = 0x00000001 , rssEntireMemory = 0x00000002 , rssRegions = 0x00000003 } |
Defines available rangeset scopes. More... | |
enum | EActivateFlags { afStart = 0x00000001 , afStop = 0x00000002 , afResume = 0x00000003 } |
Defines activation commands used by function Activate(). More... | |
enum | EStatusFlags { sfActivationStatus = 0x00000001 } |
Defines types of status requested by function GetStatus(). More... | |
enum | EActivationStatus { asInactive = 0x00000001 , asActive = 0x00000002 } |
Describes coverage status regarding to activity. More... | |
enum | ECoverageRangesFlags { crfActiveRanges = 0x00000001 , crfResolveRange = 0x00000002 } |
Defines type of range to get by function GetCoverageRanges(). More... | |
enum | ECoverageRangesTypes { crtFolder = 1 , crtModule = 2 , crtFunction = 3 , crtItem = 4 } |
Defines available rangeset types. More... | |
enum | ECoverageBitmapFlags { cbfBitmap0 = 0x00000000 , cbfBitmap1 = 0x00000001 , cbfBitmapMask = 0x0000000F , cbfDefault = cbfBitmap0 } |
Defines type of bitmap to be returned by method GetCoverageBitmap() More... | |
enum | EBitmap0Data { bm0_Executed = 0x01 , bm0_Condition = 0x02 , bm0_ConditionTrue = 0x04 , bm0_ConditionFalse = 0x08 , modeBranch = bm0_Condition , modeBranchTaken = bm0_ConditionTrue , modeBranchNotTaken = bm0_ConditionFalse } |
Defines coverage result constants. More... | |
enum | ECoverageStatisticsFlags { csftBytes = 0x00000001 , csftBytesExec = 0x00000002 , csftConditions = 0x00000003 , csftConditionsExec = 0x00000004 , csftConditionsTrue = 0x00000005 , csftConditionsFalse = 0x00000006 , csftConditionsBoth = 0x00000007 , csftBranches = csftConditions , csftBranchesExec = csftConditionsExec , csftBranchesTaken = csftConditionsTrue , csftBranchesNotTaken = csftConditionsFalse , csftBranchesBoth = csftConditionsBoth , csftCountMin = 0x00000008 , csftCountMax = 0x00000009 , csftLines = 0x0000000A , csftLinesExec = 0x0000000B } |
Defines which type of statistics to retrieve by method GetCoverageStatistics(). More... | |
Public Member Functions | |
virtual HRESULT | GetLastError (LPCSTR pszFileName, DWORD dwErrorFlags, DWORD *pdwErrorCode, LPSTR pszError, DWORD dwErrorLen) PURE |
Gets the last error code and it's string description. More... | |
virtual HRESULT | GetInfo (LPCSTR pszFileName, DWORD dwInfoFlags, DWORD *pdwInfo) PURE |
Gets information about the coverage system. More... | |
virtual HRESULT | SetConfig (LPCSTR pszFileName, DWORD dwConfigFlags, LPCSTR pszParameter=NULL, DWORD dwParameter=0) PURE |
This method sets the coverage configuration parameters. More... | |
virtual HRESULT | Activate (LPCSTR pszFileName, DWORD dwActivateFlags) PURE |
Changes state of code coverage. More... | |
virtual HRESULT | GetStatus (LPCSTR pszFileName, DWORD dwStatusFlags, DWORD *pdwStatus) PURE |
Returns current coverage status. More... | |
virtual HRESULT | GetCoverageRanges (LPCSTR pszFileName, DWORD dwRangesFlags, DWORD *pdwRangeCount, SCoverageRange *pRanges, LPCSTR pszParameter=NULL, DWORD dwParameter=0) PURE |
Returns all ranges that were defined by method SetConfig(). More... | |
virtual HRESULT | GetCoverageBitmap (LPCSTR pszFileName, DWORD dwCoverageBitmapFlags, ADDRESS aAddress, ADDRESS aEnd, DWORD dwBitmapSize, BYTE *pbyBitmap) PURE |
Returns coverage results as an array of bytes, where each byte contains coverage results. More... | |
virtual HRESULT | GetCoverageStatistics (LPCSTR pszFileName, DWORD dwCoverageStatisticsFlags, ADDRESS aAddress, ADDRESS aEnd, DWORD *pdwData) PURE |
This method retrieves coverage statistics results. More... | |
Defines activation commands used by function Activate().
Enumerator | |
---|---|
afStart | starts coverage |
afStop | stops coverage |
afResume | resumes stopped coverage |
Defines coverage result constants.
Defines coverage configuration parameters set by function SetConfig().
Defines type of bitmap to be returned by method GetCoverageBitmap()
Defines type of range to get by function GetCoverageRanges().
Enumerator | |
---|---|
crfActiveRanges | active ranges in address related format |
crfResolveRange | ranges of the resolved symbol, pass the symbol type in dwParameter and its name on pszParameter |
Defines available rangeset types.
Defines which type of statistics to retrieve by method GetCoverageStatistics().
Defines constants describing test case status.
Describes the coverage capabilities returned by GetInfo(), if dwInfoFlags was set to EInfoFlags::ifGetCapabilities.
These flags can be ORed.
Enumerator | |
---|---|
icAvailable | coverage is available |
icBranches | branch coverage available |
The type of information, which can be returned by GetInfo().
Constants are used as dwInfoFlags parameter in GetInfo().
Enumerator | |
---|---|
ifGetCapabilities | Coverage capabilities will be returned - IConnectCoverage::EInfoCapabilities. |
ifGetType | Coverage type will be returned - IConnectCoverage::EInfoType. |
Describes the available coverage types returned by GetInfo(), if dwInfoFlags was set to EInfoFlags::ifGetType.
These enum contains values, not bit flags.
Enumerator | |
---|---|
itHardware | hardware coverage |
itOffline | offline coverage |
Defines types of status requested by function GetStatus().
Enumerator | |
---|---|
sfActivationStatus | requests status described by IConnectCoverage::EActivationStatus |
|
virtual |
Changes state of code coverage.
pszFileName | file name of the code coverage document |
dwActivateFlags | activate command, see IConnectCoverage::EActivateFlags |
|
virtual |
Returns coverage results as an array of bytes, where each byte contains coverage results.
pszFileName | file name of the code coverage document |
dwCoverageBitmapFlags | see IConnectCoverage::ECoverageBitmapFlags for supported values |
aAddress | beginning of the range queried |
aEnd | end of the range queried, inclusive |
dwBitmapSize | size of the bitmap buffer, it should be (aEnd - aAddress + 1) for cbfBitmap0 (aEnd - aAddress + 1) * sizeof(SBitmap1) for cbfBitmap1 |
pbyBitmap | pointer to an user allocated buffer that has at least one byte per MAU (aEnd - aAddress + 1 <= dwBitampSize). Each byte of the bitmap has information for a single MAU. See IConnectCoverage::ECoverageMode for information about the bits used. |
pszFileName | file name of the code coverage document |
dwCoverageBitmapFlags | see IConnectCoverage::ECoverageBitmapFlags for supported values |
aAddress | beginning of the range queried |
aEnd | end of the range queried, inclusive |
dwBitmapSize | size of the bitmap buffer, it should be (aEnd - aAddress + 1) for cbfBitmap0 (aEnd - aAddress + 1) * sizeof(SBitmap1) for cbfBitmap1 |
pbyBitmap | pointer to a buffer to hold the query data |
|
virtual |
Returns all ranges that were defined by method SetConfig().
pszFileName | file name of the code coverage document |
dwRangesFlags | see IConnectCoverage::ECoverageRangesFlags |
pdwRangeCount | defines the number of items in pRanges array |
pRanges | points to array of coverage ranges |
pszParameter | set depending on the value of dwRangesFlags |
dwParameter | set depending on the value of dwRangesFlags |
|
virtual |
This method retrieves coverage statistics results.
pszFileName | file name of the code coverage document |
dwCoverageStatisticsFlags | see IConnectCoverage::ECoverageStatisticsFlags for supported values |
aAddress | beginning of the range queried |
aEnd | end of the range queried, inclusive |
pdwData | pointer to a DWORD that will get the query result |
|
virtual |
Gets information about the coverage system.
pszFileName | file name of the code coverage document |
dwInfoFlags | Defines requested information, see IConnectCoverage::EInfoFlags |
pdwInfo | On return contains information requested by dwInfoFlags, see IConnectCoverage::EInfoCapabilities and IConnectCoverage::EInfoType |
|
virtual |
Gets the last error code and it's string description.
Call this method, when other methods of this interface do not return S_OK, to get detailed error code and description.
pszFileName | file name of the code coverage document |
dwErrorFlags | flags that modify the behavior of the function. Should be 0. |
pdwErrorCode | returned error code, see IConnectCoverage::EErrorCode |
pszError | buffer for the error description string |
dwErrorLen | length of the error string buffer |
|
virtual |
Returns current coverage status.
pszFileName | file name of the code coverage document |
dwStatusFlags | defines requested status, see IConnectCoverage::EStatusFlags |
pdwStatus | on return contains coverage status, see IConnectCoverage::EActivationStatus |
|
virtual |
This method sets the coverage configuration parameters.
pszFileName | file name of the code coverage document |
dwConfigFlags | set to one of values defined by IConnectCoverage::EConfigFlags |
pszParameter | set depending on the value of dwConfigFlags |
dwParameter | set depending on the value of dwConfigFlags |