All the ways to mock your Rust code
Ok, so, suppose you’ve written a Kubernetes controller, you did it in Rust1, and then you realized that “Hey, when this thing breaks it’s hard to understand what’s going on”2. So, you decide to emit some Kubernetes events that give a little more context as to what your controller is doing and what steps it’s taken. You run all your tests3 and expect them t…



