Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actors in AutoMockable #1375

Open
Daedren opened this issue Oct 25, 2024 · 0 comments
Open

Actors in AutoMockable #1375

Daedren opened this issue Oct 25, 2024 · 0 comments

Comments

@Daedren
Copy link

Daedren commented Oct 25, 2024

AutoMockable unfortunately doesn't work with actors without some changes.
On protocols, the nominal type on the mock needs to change from "class" to "actor" in case Actor is an inherited type.
There must also be setter functions for each of the mock's variables (ThrowableError, ReturnValue, CallsCount, etc) as they can't be mutated from outside the actor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant