Hey guys, hi!
I was wondering is there is any Kotlin specific @VisibleForTesting annotation?
specifically I am interested in using the "otherwise" keyword so the production code can continue being encapsulated while having the class open for testing, like:
@VisibleForTesting(otherwise = VisibleForTesting.PACKAGE_PRIVATE)
This "java' specific @VisibleForTesting annotation cannot be used for the Kotlin specific "protected" visibility modifier, because they are different to the java equivalent. The same apply for the "internal".
Your thoughts?