diff --git a/MockGenerator/resources/META-INF/plugin.xml b/MockGenerator/resources/META-INF/plugin.xml index d209e7b..06bb143 100644 --- a/MockGenerator/resources/META-INF/plugin.xml +++ b/MockGenerator/resources/META-INF/plugin.xml @@ -1,7 +1,7 @@ codes.seanhenry.mockgenerator Swift Mock Generator for AppCode - 10 + 11 Sean Henry Stub an error for your mock method to throw.
  • Supports throwing initializers.
  • Supports throwing closures.
  • -
  • Avoids naming clashes from overloaded methods.
  • Generates generic mocks from protocols with associated types.
  • +
  • Captures invoked generic parameters.
  • +
  • Captures invoked generic return values.
  • +
  • Avoids naming clashes from overloaded methods.
  • Supports parameter type-annotation attributes and `inout`.
  • Respects the mock scope and generates `public` and `open` methods and properties.
  • Generate mock inheriting from items in 3rd party frameworks.
  • @@ -64,8 +66,8 @@ class MockDataStore: DataStore { -
  • Resolves typealiases that reference another typealias correctly.
  • -
  • Supports initialisers declared in protocols.
  • +
  • Supports capturing of generic method parameters.
  • +
  • Supports capturing of generic method return values.
  • ]]>
    diff --git a/README.md b/README.md index db6e1d5..2926279 100644 --- a/README.md +++ b/README.md @@ -58,9 +58,12 @@ To regenerate the mock, place the cursor anywhere inside the mock and select ‘ | Stub an error for your mock method to throw. |✅| | Supports throwing initializers. |✅| | Supports throwing closures. |✅| +| **Generics** | +| Generates generic mocks from protocols with associated types.|✅| +| Captures invoked generic parameters. |✅| +| Captures invoked generic return values. |✅| | **Scope, keywords, and more** | | Avoids naming clashes from overloaded methods.|✅| -| Generates generic mocks from protocols with associated types.|✅| | Supports parameter type-annotation attributes and `inout`.|✅| | Respects the mock scope and generates `public` and `open` methods and properties.|✅(protocols only)| | Generate mock inheriting from items in 3rd party frameworks.|✅(protocols only)|