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

Use diagnostics to inform that static methods in classes are not mocked #8

Open
swift-student opened this issue May 15, 2024 · 0 comments
Assignees

Comments

@swift-student
Copy link
Contributor

Static methods cannot be mocked in classes because the mock uses a subclass and static methods cannot be overridden. We could use diagnostic message with a severity of remark for this. I'm not sure yet how to view remarks other than they tend to show briefly when compiling and then go away, though maybe that is just an Xcode bug. We could allow upgrading them to warnings though using a parameter in the macro.

@swift-student swift-student self-assigned this May 15, 2024
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