Patch.Mock.Code.Generators.Delegate — patch v0.16.1
View Source Patch.Mock.Code.Generators.Delegate (patch v0.16.1) Generator for delegate modules. delegate modules are generated by taking the target module and creating a stub function for each function in the module that calls the Patch.Mock.Server 's delegate/3 function. The delegate module will also expose every function in the module regardless of the original visibility. Summary Functions generate(abstract_forms, module, exports) Generates a new delegate module based on the forms of a 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 delegate module based on the forms of a provided module.