2 ms·
For some definition of ‘good coverage’ and ‘most’: yes. I do not think 100% coverage on the code you write alone is enough to get to ‘all', though. For example
by Someone 11y ago
For some definition of ‘good coverage’ and ‘most’: yes.
I do not think 100% coverage on the code you write alone is enough to get to ‘all', though. For example, if your test declares a vector and calls a function that does
v.erase( i, v.end());
with i == v.end(), you get 100% coverage, but in production, that part of the code might be called with i == v.begin(), and that invalidates all iterators on the vector.