Inspiration

Creating a mock contract for each of the contracts in your project when trying to unit test specific functionality in a single contract can be time consuming, annoying and can fill a project repository with a ton of additional code that is just used for mocking.

What it does

You can inject the generic mock contract as a dependency by passing in its address to a contract under test, set mock return values for specific functions and invoke functions in the contract under test from the generic mock contract as a whitelisted sender.

Built With

Share this project:
×

Updates