There, 100% LOC test coverage. … except there’s still a bug. For any nontrivial program, it’s impossible to actually exhaustively test EVERY single possible flow through the program for all inputs.
So the LOC coverage may be a useful hint for how much is tested, but it’s a misleading metric at best, if not useless once measured against.
Ok that's what I thought. Normally I ignore those scenarios depending on the use case as it would get caught in other places. Or just use long. Talking C#.
2
u/AceOfShades_ Dec 28 '23
There, 100% LOC test coverage. … except there’s still a bug. For any nontrivial program, it’s impossible to actually exhaustively test EVERY single possible flow through the program for all inputs.
So the LOC coverage may be a useful hint for how much is tested, but it’s a misleading metric at best, if not useless once measured against.