In https://developer.android.com/codelabs/basic-android-kotlin-compose-write-automated-tests#3
The meaning of the annotation @VisibleForTesting is unclear (or wrongly explained).
The actual purpose of the annotation is just to document, not to change, the visibility:
https://developer.android.com/reference/androidx/annotation/VisibleForTesting
Yet, the course states that:
"In the MainActivity.kt file on the line before the calculateTip() method, add the @VisibleForTesting annotation:
....
This makes the method public, but indicates to others that it's only public for testing purposes."
The cited course sentences can also be read differently. But then it should state "This makes the method internal, but .... only internal for ....".