Make Your Rust Code Unit Testable With Dependency Inversion
Use Traits to invert your Rust dependencies and keep your code loosely coupled and testable
Published in
11 min readSep 28, 2023
It was an epiphany moment when I figured out Java classes could be mocked by extending them and overriding their public methods.