How can you find dead code!!
Answers were Sorted based on User's Feedback
Answer / satish nath siddha
Dead code is something, which is not executed. Generally,
static testing techniques are used to find out dead code.
There are lots of Commercial Off the Shelf (COTS) tools
like Static Analyzer, to perform this static testing. This
is more of a white-box testing, done by developers in most
cases.
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / bhargavi
If the program is small, dead code can be detected by
manual code review.for each file,class,module and
interface,list where it is being used.For which no use
location is available is the candidate for removel.
If program is very large it is hard to detect the
unreachable code,in such cases make use available tools.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / mfsi_chinmayb`
Hi
Dead code (a.k.a Unreachable code),as the name suggests is
the portion of the code which is never executed.
Point out the word NEVER , as the code above that made the
break before that and the execution of that never come.
Ex:
int function(a,b)
{
int z;
return a+b;
z=a*b; //It will never be executed
}
The above is the example for a Statement . There might a big
function which is never executed.In larger programs 5-10% of
dead code can be found.
Note : If a program is smaller in size error code can be
checked manually.But for larger program we have automated
tools like: TrueCoverage etc
| Is This Answer Correct ? | 0 Yes | 0 No |
Hi guys can u please tell that how to write the test case for checking the number of emails in inbox of gmail.
What is Internalisation testing?
Can anybody give the syllabus of Manual testing in order wise so i would like to prepare for that in proper manner. I have only one month time to get prepare for that. Rashmi_vastred@yahoo.co.in
What is Software Testing ?
Can you send me a good site for testing?
8. What are the last three Web accessibility topics or questions you researched on the Internet?
What is Test methodology, Testing type , Testing approach, Testing technique & Testing methods. Explain with example.
At Evening 6'o clock they will release the new build to you.what will u do on that time.
Usually customers won’t give all the requirements. How will you manage & collect all the necessary information?
what is alpha , beta testing ?
Suppose one project is given to u.How do u know whether this project is suitable for manual testing or automation.
If RTM is not avaiable in the project whatis use and what the Difficult you face