Question: Design test cases to achieve loop coverage on the function computeTax (list the loops covered by each test case). If it is not feasible, explain
- Design test cases to achieve loop coverage on the function "computeTax" (list the loops covered by each test case). If it is not feasible, explain the reason. Try your best to use the minimum number of test cases to achieve the loop coverage. Consider a loop covered if at least in one test the loop body was executed 0 times, in a second test the body was executed exactly once, and in another test the body was executed more than once. needs to be in a table form.
Step by Step Solution
There are 3 Steps involved in it
To design test cases for achieving loop coverage on the function computeTax we need to identify the ... View full answer
Get step-by-step solutions from verified subject matter experts
