car crash unbelievable

No reproduction scenario

You have only a stack trace, and can’t find a path of execution that reproduces erroneous data.

  1. Write a unit test that should crash.❌
  2. try to fix production code.
  3. Check that newly created test pass. βœ…

Code is not testable ?

Refactor until code is turns testable πŸ€·β€β™‚οΈ.

You can reproduce crash ?

Guess what ? exactly the same applies. Add a test to your test suite to check crash never comes back.