Annotation Type VisibleForTesting


@Documented @Target({TYPE,METHOD,FIELD,CONSTRUCTOR}) @Internal public @interface VisibleForTesting
This annotations declares that a function, field, constructor, or entire type, is only visible for testing purposes.

This annotation is typically attached when for example a method should be private (because it is not intended to be called externally), but cannot be declared private, because some tests need to have access to it.