in reply to Re^2: Testing my tests
in thread Testing my tests (mutation testing)

Right, but I think what he's asking about is whether the return values themselves have been tested against directly. I just put in the if statements to show that to do what he wants, some serious thought would have to be put into the introspection to ensure that if you could prove that an assertion has been made, it would also have to be confirmed which return path the return came out of.

Replies are listed 'Best First'.
Re^4: Testing my tests
by Anonymous Monk on Feb 27, 2017 at 23:57 UTC

    "Right, but I think what he's asking about is whether the return values themselves have been tested against directly."

    Don't assume, ASK! But consider that if you test your interfaces then those return values WILL BE IN THE TEST. That's what a test does -- it checks that the return value is what you expected. Coverage shows you which branches have been executed by those tests and which have not.

    Testing is simple. People make it complicated.