LastExceed
06/02/2021, 7:30 AMchristophsturm
06/02/2021, 8:25 AMNimish Nandwana
06/02/2021, 9:05 AM@VisibleForTesting
annotation. Try out with private and protected too. I am not sure
https://developer.android.com/reference/kotlin/androidx/annotation/VisibleForTestingJiddles
06/02/2021, 9:11 AM@VisibleForTesting
is for when you change the visibility of something you’re testing (the class/method under test) needs to be made public in order to make it testable. I believe when using Java, using it can give you warning.
It’s essentially a note to other developer to explain why something has a relaxed visibilityLastExceed
06/02/2021, 9:33 AMHauke
06/02/2021, 10:17 AMinternal
?
If someone else uses your module, then they probably don't care about your tests.christophsturm
06/02/2021, 10:42 AM