jmfayard
09/04/2019, 9:45 AM@VisibleForTesting
exists in pure Kotlin?
On Android we have android.support.annotation.VisibleForTesting
to change the visibility of properties and methods for unit tests.tddmonkey
09/04/2019, 9:52 AMEugen Martynov
09/04/2019, 10:06 AMEugen Martynov
09/04/2019, 10:07 AMjmfayard
09/04/2019, 10:15 AMclass MyService(
- private val myDependency: Something
+ val myDependency: Something
)
That’s what I would prefer as well, those micro-optimization of properties visibility brings nothing IMHO.Matej Drobnič
09/05/2019, 5:29 AMjmfayard
09/05/2019, 2:36 PMtddmonkey
09/05/2019, 2:51 PMjmfayard
09/05/2019, 2:55 PMtddmonkey
09/05/2019, 3:35 PM