28 matching pages, found in 84 ms

Written on your GPU machine; takes a few seconds the first time.

  1. patch.hexdocs.pmhttps://patch.hexdocs.pm › Patch.Mock.Code
    More about patch.hexdocs.pm
    Patch.Mock.Code — patch v0.16.1

    … 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 …

    0 points
  2. patch.hexdocs.pmhttps://patch.hexdocs.pm › Patch.Macro
    More about patch.hexdocs.pm
    Patch.Macro — patch v0.16.1

    … 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 …

    0 points
  3. patch.hexdocs.pmhttps://patch.hexdocs.pm › Patch.Mock.Code.Generate
    More about patch.hexdocs.pm
    Patch.Mock.Code.Generate — patch v0.16.1

    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 …

    0 points
  4. patch.hexdocs.pmhttps://patch.hexdocs.pm › Patch.Mock.Code.Generators.Fro…
    More about patch.hexdocs.pm
    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 …

    0 points
  5. patch.hexdocs.pmhttps://patch.hexdocs.pm › Patch.Mock.Code.Freezer
    More about patch.hexdocs.pm
    Patch.Mock.Code.Freezer — patch v0.16.1

    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 …

    0 points
  6. patch.hexdocs.pmhttps://patch.hexdocs.pm › 02-patching
    More about patch.hexdocs.pm
    Chapter 2: Patching — patch v0.16.1

    … 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 …

    0 points
  7. patch.hexdocs.pmhttps://patch.hexdocs.pm › Patch.Mock.Value
    More about patch.hexdocs.pm
    Patch.Mock.Value — patch v0.16.1

    … 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 …

    0 points
  8. patch.hexdocs.pmhttps://patch.hexdocs.pm › Patch
    More about patch.hexdocs.pm
    Patch — patch v0.16.1

    … 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 …

    0 points
  9. patch.hexdocs.pmhttps://patch.hexdocs.pm › Patch.Mock.Code.Transform
    More about patch.hexdocs.pm
    Patch.Mock.Code.Transform — patch v0.16.1

    … 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

    0 points
  10. patch.hexdocs.pmhttps://patch.hexdocs.pm › api-reference
    More about patch.hexdocs.pm
    API Reference — patch v0.16.1

    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 …

    0 points

Search for “Source Code site:patch.hexdocs.pm” on Google, or add !ddg, !w and other shortcuts to any search.