Universal mocking library

#1

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());
8 Likes
#2

🤦

3 Likes