In rare instances, a protocol marked with Mockable may be private and used solely within its file. If this happens, the generated mock cannot be initialized because its initializer is marked as private. While marking the protocol as fileprivate can resolve this issue, it is undesirable. Could the initializer, and generated members of the mock be restricted to an access modifier no less accessible than fileprivate?
example:
Inlining the Mock will give me this error:
Method 'registerUser(_:password:)' must be declared fileprivate because it matches a requirement in private protocol 'RegisterViewInteractor'
In rare instances, a protocol marked with Mockable may be private and used solely within its file. If this happens, the generated mock cannot be initialized because its initializer is marked as private. While marking the protocol as fileprivate can resolve this issue, it is undesirable. Could the initializer, and generated members of the mock be restricted to an access modifier no less accessible than fileprivate?
example:
Inlining the Mock will give me this error: