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 protocol's access control on the spy's declaration #72

Open
AndreiVataselu opened this issue Dec 13, 2023 · 0 comments · May be fixed by #80
Open

Use protocol's access control on the spy's declaration #72

AndreiVataselu opened this issue Dec 13, 2023 · 0 comments · May be fixed by #80

Comments

@AndreiVataselu
Copy link

Is your feature request related to a problem? Please describe.
If you use the macro on a public protocol declaration from module A and you have a unit test in another module that you'd like to use the protocol spy from module A, you don't have visibility to the Spy in module B since it's declared as internal.

Describe the solution you'd like
The generated spy should use the same access control as the attached protocol's.

Describe alternatives you've considered
You could import the module as testable

Additional context

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