Elephants for breakfast: testing the untestable in Rust — Programming is Fun
How do you test functions that can’t be tested? That’s easy: you don’t! Instead, you use the magic function technique to break down the elephants—excuse me, functions—into smaller bites that you can test.
Programming is Fun