android. kotlin, the coverage test is failing on lateinit var member
in android kotlin class it has a lateinit var member. The coverage test is failing on the function referring to it.
The simplified class here:
open class TestC constructor(context: Context) {
private lateinit var mModule: NotificationModule
protected fun setModule(module: NotificationModule) {
mModule = module
}
protected fun getModule(): NotificationModule {
return mModule
}
fun doSomething() {
if (mModule.pushToken == null) {...