Hey is there a good way to mock objects in Rust? How should I unit test stuff that’s tightly coupled to hardware APIs?
@ticky I've seen a lot of people do that with generics, but obviously that doesn't work in every situation. I dunno.
long-winded attempt at "helping" 1/ Afficher plus
long-winded attempt at "helping" Afficher plus
long-winded attempt at "helping" 2/2 Afficher plus
@Gyro @ticky
Since what you're trying to work with isn't exposed as a trait, but a hardware API, you might need to instead refactor your accesses to the API through another trait, which you would then access in the manner described above?
though this is kind of foreign terrain for me, tell me if I should be quiet and stop trying to "help"