Kolos65 / Mockable

A Swift macro driven auto-mocking library.
MIT License
222 stars 15 forks source link

fix: add support for actor protocols #62

Closed Kolos65 closed 1 month ago

Kolos65 commented 1 month ago

Inheritance from the Actor protocol in protocol declarations requires conforming types to be actors. This PR handles this edge case correctly by opting for an actor mock implementation declaration if required. Additionally, the given(), when() and verify() helpers are marked as nonisolated in actor implementations.