Coverage for this can be as simple as using a couple of negative integers and floating values. Then taking into account how the possible structure of the final result will affect some other function down the road. Is the result something that hurts the value of your application? Not an error, but a result that you wouldn't want.
If your function will be isolated the approach to assessing coverage is different than a function that will have heavy integration. Also, coverage has a context that should be taken in consideration.
The "Enough" factor ultimately will depend on you and the risk level you can afford.
Answers ( 2 )
Please briefly explain why you feel this answer should be reported .
Report Cancelvar results = new function(a, b) {
return a + b;
}
results(10, 11);
Coverage for this can be as simple as using a couple of negative integers and floating values. Then taking into account how the possible structure of the final result will affect some other function down the road. Is the result something that hurts the value of your application? Not an error, but a result that you wouldn't want.
If your function will be isolated the approach to assessing coverage is different than a function that will have heavy integration. Also, coverage has a context that should be taken in consideration.
The "Enough" factor ultimately will depend on you and the risk level you can afford.
Please briefly explain why you feel this answer should be reported .
Report CancelWell said. This is the best answer to me.