swift-spyable
swift-spyable copied to clipboard
Use protocol's access control on the spy's declaration
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