Universal mocking library
Mocking is traditionally a hard problem in systems programming, since we don't have duck typing for faking things. However, I think I have found a solution, which I have published to crates.io. The method is actually very simple, if you want to see how it works, go to the github repo to vew the source.
Usage is as simple as
use universal_mocking_library::mock;
println!("{}", mock());
Posted Apr 1, 2019, 9:39 AM UTC
Sir, Your headphones cost less than $100.