debugger.XCoverage.GetCoverage


This function gets the coverage. [IECUBE][IECUBE2][Simulator]

[Specification format]

debugger.XCoverage.GetCoverage(funcName, progName = "", fileName = "")

[Argument(s)]

Argument

Description

funcName

Specify the function name to retrieve coverage for.

progName

Specify the name of the load module containing the function.

If there is only one load module, then this can be omitted (default).

fileName

Specify the name of the file containing the function.

If it is a global function, then this can be omitted (default).

Caution

If two or more parameters are specified, then three parameters must be specified.

[Return value]

Value without "%" (numeric value)

Remark

The results of function execution are displayed with a "%" sign added.

[Detailed description]

-

This function gets coverage for the function specified by funcName.

-

If there are multiple load modules, specify progName.

-

In the case of a static function, specify fileName.

Caution

When a load module name (progName) or file name (fileName) is specified, it needs to be enclosed in double quotation marks (" ") in some cases. See "CS+ Integrated Development Environment Users Manual: Debug Tool" for details.

Example

When file name "C:\path\test.c" is specified

"\"C:/path/test.c\""

Or

"\"C:\\path\\test.c\""

[Example of use]

>>>debugger.XCoverage.GetCoverage("TestInit", "C:/test/Test.out", "C:/test/Test.c")
81.50%
>>>