• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

Code Coverage in Java

 
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
 
"The Hood"
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
 
This. Exactly this. This is what my therapist has been talking about. And now with a tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!