Brightify / Cuckoo

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

Warning in generated code: No 'async' operations occur within 'await' expression #432

Closed JavaAdam closed 2 years ago

JavaAdam commented 2 years ago

A new warning appears concerning the Cuckoo.MockManager.crashOnProtocolSuperclassCall() for every mocked async function in my project. What seems to be correct as Cuckoo.MockManager.crashOnProtocolSuperclassCall is not an async function.

This is disturbing as I try to keep my projects warning free.

I am missing something or is that an unexpected (or even expected) behavior?

Info:

image
MatyasKriz commented 2 years ago

Hey, @JavaAdam! This has just been fixed in the newly released 1.9.0 version.

This is a change in the mock generator, so add the --clean flag to the run script. 🙂

JavaAdam commented 2 years ago

Hi. @MatyasKriz I have somehow missed the newest release. It works as expected now. Thank you. 🙏