View Source Patch.Mock.Code.Transforms.Reroute (patch v0.15.0)

Summary

Functions

Transforms the provided forms to rewrite any remote calls to the source module into remote calls to the destination module.

Functions

Link to this function

transform(abstract_forms, source, destination)

View Source
@spec transform(
  abstract_forms :: [Patch.Mock.Code.form()],
  source :: module(),
  destination :: module()
) ::
  [Patch.Mock.Code.form()]

Transforms the provided forms to rewrite any remote calls to the source module into remote calls to the destination module.