Text of patch.hexdocs.pm › Patch.Mock.Code.Generators.Facade.html as Styx crawled it on Nov 20, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

Patch.Mock.Code.Generators.Facade — patch v0.16.1

View Source Patch.Mock.Code.Generators.Facade (patch v0.16.1) Generator for facade modules. facade modules are generated by taking the target module and creating a stub function for each function in the module that calls the delegate modules corresponding function. The facade module can optionally expose private functions as public. Summary Functions generate(abstract_forms, module, exports) Generates a new facade module based on the forms of the provided module.

Functions Link to this function generate(abstract_forms, module, exports) View Source @spec generate( abstract_forms :: [ Patch.Mock.Code.form ()], module :: module (), exports :: Patch.Mock.Code.exports () ) :: [ Patch.Mock.Code.form ()] Generates a new facade module based on the forms of the provided module.