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

Add support for Actor protocol. #266

Merged
merged 5 commits into from
Oct 24, 2024
Merged

Add support for Actor protocol. #266

merged 5 commits into from
Oct 24, 2024

Conversation

sidepelican
Copy link
Collaborator

#216

When the mock inherits the Actor protocol, the mock becomes actor automatically.

@sidepelican sidepelican requested review from uhooi and fummicc1 October 24, 2024 02:15
uniqueModels: uniqueModels,
attributes: attributes,
inheritedTypes: mockInheritedTypes,
inheritsActorProtocol: inheritedTypes.contains(.actorProtocol)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the most important logic in this PR.
Sorry for the mix of non-essential changes (e.g. renaming from Type to SwiftType)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this scope, inheritedTypes contains all inherited protocols through parent protocol.

@sidepelican sidepelican merged commit 0ab3723 into uber:master Oct 24, 2024
3 checks passed
@sidepelican sidepelican deleted the actor branch October 24, 2024 03:05
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

Successfully merging this pull request may close these issues.

2 participants