swift-spyable icon indicating copy to clipboard operation
swift-spyable copied to clipboard

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

Open AndreiVataselu opened this issue 8 months ago • 1 comments

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

AndreiVataselu avatar Dec 13 '23 13:12 AndreiVataselu