1. Find some known-good code you trust and measure coverage. 2. Find a few missing coverage lines. 3. Write tests. 4. Find bugs!
miniblog.
Related Posts
Test code is total: we require it to always terminate or it's a failure! It also typically has 100% line and branch coverage.
I feel way less nervous about refactoring tests, you can always just run them.
I don't care what your project's test coverage is, but the fact that you're measuring it is a great sign.
The examples coverage in Rust is exceptionally good. It's weird how few languages include an example in their stdlib docs for sorting.
