Releases: ozontech/TestingMacroCollection
3.1.0
Added
-
Support for enumerations via the
@Arbitrarymacro. For the.staticgeneration type, the case marked with@ArbitraryEnumStaticCaseis used. For.dynamic, a random case is used. -
Auxiliary
@ArbitraryEnumStaticCasemacro, which helps the@Arbitrarymacro select an enumeration case for the static generation type. -
Generation of an extension with the static
.arbitrary()function via theArbitrarymacro. -
Auxiliary
@Emptedmacro for generating an empty collection by default in the@Arbitrarymacro. -
The
accessModifierparameter for the@Arbitrarymacro. -
Support for typed errors in methods with throws for mocks.
-
Support for the
@availableattribute for@Mockproperties and methods.
Technical changes
-
Added support for method overloading in
@Mockand@AnyMockable. -
The lower bound of the
swift-syntaxdependency is raised to version 601.0.0. -
The
@Mockand@Arbitrarymacros are now wrapped in#if DEBUG ... #endif. -
The
@Emptedmacro can only be attached toArrayandSet. -
Removed redundant generation of default in switch for an enum with a single case in the
@AutoEquatablemacro.
Fixed
-
Computed properties of models are now ignored in the
@Arbitrarymacro. -
Corrected the return value handling for a nested enum inside an extension generated by the
@Arbitrarymacro. -
Fixed generation of
arbitraryfor deeply nested types, for example,One.Two.Three, in the@Arbitrarymacro. -
Added support for generic types within a generic clause, such as
Result<T, Error>.
3.0.1
3.0.1
- Renamed the Macro target TestingMacros to OzonTestingMacros
3.0.0
Initial Commit