+1
0
-1

How VectorCAST computes the Statement coverage

Following is the function:-

namespace namespace1{
namespace namespace2{
namespace namespace3{

void CExampleClass::StartNewPatientAction(void)
{
do {...

Posting in: 

6 Answers:

+1
+1
-1

Hello,

Intriguing.

For a function with no body VectorCAST does add a statement instrumentation point.

Is that correct? I don't know. Does an empty function have an implied...

+1
0
-1

Yeah, but for the following code I get the statement coverage as 4 lines. I want to mention here that the lines of code inside this function are expansion of a macro. Is it because of this macro...

+1
0
-1

Yeah, but for the following code I get the statement coverage as 4 lines. I want to mention here that the lines of code inside this function are expansion of a macro. Is it because of this macro...

+1
0
-1

Hello,

That is the way it works. If you have an enterprise project you can view coverage on the original source code.

Navigate to project view, files tab , right click -> view -...

+1
0
-1

Thanks Brian for the replies. I got your point. I have one last query :)

Following is the code snippet:-

Bool CExampleCodeModel::ConfirmAccessCode(const std::string&...

+1
0
-1

Hello Piyush,

The if itself is a compound statement and contributes to the coverage, even though it does not have a semicolon.

Similar goes for do, while, switch etc.

This is...