Answers ( 2 )

    1
    September 11, 2015 at 9:27 pm

    Please briefly explain why you feel this answer should be reported .

    Report Cancel
    Coverage is a tricky subject. Take this function:

    var 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.
    Best answer
  1. Thanh Huynh
    0
    September 13, 2015 at 10:58 pm

    Please briefly explain why you feel this answer should be reported .

    Report Cancel
    Hi cemueses,

    Well said. This is the best answer to me.

Leave an answer

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

ToanN R

About [ToanN]