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

🤦

3 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.