Text of patch.hexdocs.pm › Patch.Mock.Code.Generators.Frozen.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.Frozen — patch v0.16.1

View Source Patch.Mock.Code.Generators.Frozen (patch v0.16.1) Generator for frozen modules. frozen modules are generated by taking the target module and renaming it and ensuring that any call in the module to itself is sent to the frozen module and not the provided module. The frozen module simple acts as a way to call the unaltered original code. It is only used internally to preserve the GenServer module since the internal implementation requires that GenServer work as expected.

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