Brightify / Cuckoo

Boilerplate-free mocking framework for Swift!
MIT License
1.67k stars 175 forks source link

Temporarily add `@unchecked Sendable` to every mock. #516

Closed MatyasKriz closed 4 weeks ago

MatyasKriz commented 1 month ago

If you have mocks that make use of Sendable or otherwise use Swift concurrency, please try integrating this branch and voting with reactions whether everything works as expected.

stzouvaras commented 1 month ago

hello @MatyasKriz ,

this is a welcomed temporary solution but unfortunately, this is not enough we also need to adjust TypeErasureTemplate and NopImplStubTemplate

MatyasKriz commented 1 month ago

Thanks for letting me know, I'll see what I can do. 🙂

MatyasKriz commented 1 month ago

Okay, the fix is pushed. I decided to remove the previous implementation, it was too fragile anyway. It's now just hardcoded in the templates you provided. @stzouvaras