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

Link to this section Summary

Functions

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

Link to this section 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.