View Source API Reference Repatch v1.6.0
Modules
Repatch is a library for efficient, ergonomic and concise mocking/patching in tests (or not tests). It provides an efficient and async-friendly replacement for Mox, ProtoMock, Patch, Mock and all other similar libraries.
Helper module for patching application env.
Add this cover tool to your mix project like this.
An ExUnit
-friendly helper to be used in testing. Just add
Helpers for working with repatch in an imperative mocking style.
See expect/4
for more documentation.
This exception is raised when function is called without any expectations left in queue
Helper to generate modules based on protocols or behaviours. See Repatch.Mock.define/2
.
This exception is raised when not yet patched
function from the module generated by Repatch.Mock.define/2
is called