• Post Reply Bookmark Topic Watch Topic
  • New Topic

Code Coverage in Java  RSS feed

 
Muthu Vel
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are doing mini-project in java to test the efficiency of the java source code,that is, to findout how many times a statement in java source code is executed. For this, we have to use java lex and yacc utilities. But, we are having little knowledge in lex and yacc in unix environment. so we need guide who is well-wised in java lex and yacc in windows environment. so please any one who is interested please contact us through muthuvel_is@yahoo.com
System.out.println("Wanted Help");
if(i=10)
{
j = p++;
k = z++;
}
else
l++;
for the above piece of code, we have to include a variable(must be unique from the variable used inside the original source code)and incrementing the variable to find how many times it is executed. The expected result might be in the form.

line number : number of times executed
15 : 10
16 : 5
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Muthu,
This forum is for questions related to this SITE (not to java). Moving to the Performance forum.
Having someone respond to you via e-mail will not help out anyone ELSE who might be interested in the conversation. Please post your responses here.
Cindy
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!