-
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.
-
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.
-
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>.
- Renamed the Macro target TestingMacros to OzonTestingMacros.
- Ran swiftformat.
-
@FunctionBodyMockmacro for automatic method call proxying to the internalMock()class in@AnyMockable. This is a helper macro and shouldn't be called manually. -
@Nilablemacro for generating nil default values in @Arbitrary macro. Can only be applied to optional and force-unwrapped properties. -
.Arbitrary()method implementation forInt64.
- Bumped Swift version requirement to 6.0.
- Minimum swift-syntax version increased to 600.0.0.
- Added strict-concurrency support for
@Mockand@AnyMockable.
- Ability to add
@Arbitrary(.dynamic)to the exceptions. - Default value generation for properties in
@Mockand@AnyMockable: standard types, collections, and tuples. - Generic type support in
@Mockand@AnyMockable.
Sendableprotocol support inMockMacro.
- Default value generation for Swift or Foundation types and closures in the
Arbitrarymacro.
- Full nested type path generation for properties in the
Arbitrarymacro. For example,One.Two.Three.
Mocknow generates initializers if defined in the protocol.- Actor support in
Mock. Property setters are now generated for mutable properties. - API Mock change: replaced
shouldBeInheritedparameter withinheritability. - Removed
Foundationimport requirement forMockorAnyMockablemacros. Mockautomatically applies weak modifier to delegate properties. Use@Ignoredmacro to override.- Added new README and GitLab wiki.
Arbitrarynow correctly generates default values forBool.- Fixed return value type generation of
someoranyinMockandAnyMockable.