I'm trying to hide a method that should be visible only for test usage.
Is there any equivalent for javadoc's @hide
I'm not an expert using KDoc neither JavaDoc, If I'm missing any concept please point me to it.
/** @hide */
fun methodToHide() : String = "foo"
If you really want to show that method/function is not part of public API and is exposed only to be testable, it's considered to be a good practice to use annotation @VisibleForTesting
. If you don't have guava or similar library in your project you can create such annotation easiily yourself.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With