28 matching pages, found in 84 ms
Written on your GPU machine; takes a few seconds the first time.-
patch.hexdocs.pmhttps://patch.hexdocs.pm › Patch.Mock.CodePatch.Mock.Code — patch v0.16.1
More about patch.hexdocs.pm
… a module from the code server stick_module(module) Marks a module a sticky unstick_module(module) Unsticks a module Types Link to this type binary_error() View Source @type binary_error …
-
patch.hexdocs.pmhttps://patch.hexdocs.pm › Patch.MacroPatch.Macro — patch v0.16.1
More about patch.hexdocs.pm
… function debug(ast) View Source @spec debug(ast :: Macro.t ()) :: Macro.t () Utility function that acts like inspect/1 but prints out the Macro as code. Link to this macro match(pattern, expression) View …
-
patch.hexdocs.pmhttps://patch.hexdocs.pm › Patch.Mock.Code.GeneratePatch.Mock.Code.Generate — patch v0.16.1
More about patch.hexdocs.pm
View Source Patch.Mock.Code.Generate (patch v0.16.1) This module provides the ability to generate derivative modules based on a target module. This module delegates code generation to purpose specific Generator modules, see those modules …
-
patch.hexdocs.pmhttps://patch.hexdocs.pm › Patch.Mock.Code.Generators.Fro…Patch.Mock.Code.Generators.Frozen — patch v0.16.1
More about patch.hexdocs.pm
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 …
-
patch.hexdocs.pmhttps://patch.hexdocs.pm › Patch.Mock.Code.FreezerPatch.Mock.Code.Freezer — patch v0.16.1
More about patch.hexdocs.pm
View Source Patch.Mock.Code.Freezer (patch v0.16.1) The Code Freezer is a registry that can be used to register and use modules that might be frozen. Modules that Patch relies on must be freezable …
-
patch.hexdocs.pmhttps://patch.hexdocs.pm › 02-patchingChapter 2: Patching — patch v0.16.1
More about patch.hexdocs.pm
… like this: Note: this code is invalid and won't compile patch ( Example , :example , fn a -> { :patched , a } a , b , c -> { :patched , a , b , c } end ) This code is illegal in Elixir, the …
-
patch.hexdocs.pmhttps://patch.hexdocs.pm › Patch.Mock.ValuePatch.Mock.Value — patch v0.16.1
More about patch.hexdocs.pm
… this type t() View Source @type t() :: Patch.Mock.Values.Callable.t () | Patch.Mock.Values.CallableStack.t () | Patch.Mock.Values.Cycle.t () | Patch.Mock.Values.Raises.t () | Patch.Mock.Values.Scalar.t () | Patch.Mock.Values.Sequence.t () | Patch.Mock.Values.Throws.t () | term () Functions Link to this function advance(value) View Source @spec advance(value :: t ()) :: t () Advances the given value …
-
patch.hexdocs.pmhttps://patch.hexdocs.pm › PatchPatch — patch v0.16.1
More about patch.hexdocs.pm
… literals in the test code. If they are literals then assert_any_call/1 should be preferred. Link to this macro assert_called(call) View Source (macro) @spec assert_called( Macro.t ()) :: Macro.t …
-
patch.hexdocs.pmhttps://patch.hexdocs.pm › Patch.Mock.Code.TransformPatch.Mock.Code.Transform — patch v0.16.1
More about patch.hexdocs.pm
… abstract_forms, module) View Source See Patch.Mock.Code.Transforms.Remote.transform/2 . Link to this function rename(abstract_forms, module) View Source See Patch.Mock.Code.Transforms.Rename.transform/2 . Link to this function reroute(abstract_forms, source, destination) View Source See Patch.Mock.Code.Transforms.Reroute.transform/3
-
patch.hexdocs.pmhttps://patch.hexdocs.pm › api-referenceAPI Reference — patch v0.16.1
More about patch.hexdocs.pm
View Source API Reference patch v0.16.1 Modules Patch Patch - Ergonomic Mocking for Elixir Patch.Access Patch.Apply Utility module to assist with applying functions. Patch.Assertions Patch.Case Patch.ConfigurationError Patch.Importer Patch.InvalidAnyCall Patch.Listener Patch.Listener.Supervisor Patch.Macro Patch.MissingCall Patch.Mock …
Search for “Source Code site:patch.hexdocs.pm” on Google, or add !ddg, !w and other shortcuts to any search.