| ||||||||||||||||||||
rsCoverageMetricFromStringConvert string to RsCoverageMetric value. Converts a string to an individual RsCoverageMetric value. SyntaxRsCoverageMetric rsCoverageMetricFromString (const char *str); Parameters
Return ValueReturns an individual RsCoverageMetric value whose name matches str (using case-insensitive comparison). The RsCoverageMetric values are listed in RsCoverageMetric.
Returns RsCvgNone if there is no match, in which case rsGetLastError
should NOT be called.
rsCoverageMetricToStringConvert RsCoverageMetric value to string. Converts an individual RsCoverageMetric value to a string. Syntaxconst char *rsCoverageMetricToString (RsCoverageMetric cvg); Parameters
Return ValueReturns a constant string representing the value of cvg if cvg is one of the individual coverage metric values. See Coverage Metric Names for the list of coverage metric names.
Returns NULL if cvg is not one of the individual
RsCoverageMetric values, in which case rsGetLastError should NOT be
called.
rsGetCoverageCriteriaCountNumber of coverage metrics being tracked. Returns the number of coverage criteria corresponding to most recent call to rsTester or rsSimRunSuite. Syntaxint rsGetCoverageCriteriaCount (RsHandle *h); Parameters
Return ValueNumber of coverage criteria being tracked. When calling any of the rsGetCoverageCriteria functions, the ’index’ parameter must be less than the value returned by rsGetCoverageCriteriaCount.
The return value is 0 if rsTester or rsSimRunSuite was not
called before or an error occurred during the last call.
rsGetCoverageCriteriaNameMap an index to a coverage metric name. Returns the name of a coverage criterion corresponding to the most recent call to rsTester or rsSimRunSuite. Syntaxint rsGetCoverageCriteriaName ( RsHandle *h, int index, char *buffer, int bufferSize ); Parameters
Return ValueReturns -1 if an error occurred (either the index parameter is outside the valid range or neither rsTester or rsSimRunSuite have been called before). Returns 0 on success.
Returns a value greater than 0 if either the buffer parameter is NULL or
the bufferSize parameter was not sufficient to receive the
complete name. In that case, the value returned specifies the buffer size
required to store the complete name.
rsGetCoverageCriteriaNumCoveredNumber of covered targets in a metric. Returns the number of targets in the given metric covered during the most recent call to rsTester or rsSimRunSuite. Syntaxint rsGetCoverageCriteriaNumCovered (RsHandle *h, int index); Parameters
Return ValueReturns -1 if an error occurred (either the index parameter is outside the valid range or neither rsTester or rsSimRunSuite have been called before).
Returns the number of covered targets for the coverage criterion specified
by the index parameter.
rsGetCoverageCriteriaNumTargetsNumber of targets in a metric. Returns the number of targets in the given metric for the most recent call to rsTester or rsSimRunSuite. Syntaxint rsGetCoverageCriteriaNumTargets (RsHandle *h, int index); Parameters
Return ValueReturns -1 if an error occurred (either the index parameter is outside the valid range or neither rsTester or rsSimRunSuite have been called before).
Returns the total number of targets for the coverage criterion specified by
the index parameter.
rsGetCoverageCriteriaNumUncoveredNumber of uncovered targets in a metric. Returns the number of uncovered targets in a given metric during the most recent call to rsTester or rsSimRunSuite. Syntaxint rsGetCoverageCriteriaNumUncovered (RsHandle *h, int index); Parameters
Return ValueReturns -1 if an error occurred (either the index parameter is outside the valid range or neither rsTester or rsSimRunSuite have been called before).
Returns the number of uncovered targets for the coverage criterion
specified by the index parameter.
rsGetCoverageCriteriaNumUnreachableNumber of unreachable targets in a metric. Returns the number of unreachable targets in the given metric during the most recent call to rsTester or rsSimRunSuite. Syntaxint rsGetCoverageCriteriaNumUnreachable (RsHandle *h, int index); Parameters
Return ValueReturns -1 if an error occurred (either the index parameter is outside the valid range or neither rsTester or rsSimRunSuite have been called before).
Returns the number of unreachable targets for the coverage criterion
specified by the index parameter.
rsGetCoverageCriteriaPercentCoveredPercentage of reachable targets in a metric that are covered. Returns the name of a coverage criterion corresponding to the most recent call to rsTester or rsSimRunSuite. Syntaxdouble rsGetCoverageCriteriaPercentCovered (RsHandle *h, int index); Parameters
Return ValueReturns -1 if an error occurred (either the index parameter is outside the valid range or neither rsTester or rsSimRunSuite have been called before).
Returns the percentage of covered targets for the coverage criterion
specified by the index parameter. The value ranges from 0.0
(nothing was covered) to 100.0 (all reachable targets were covered).
| ||||||||||||||||||||