I'm writing some unit tests for my Android app written in Kotlin, and I'm getting errors from the included inlined collection functions, in this case specifically sortedBy
override fun onDaysSelected(dayOfWeekList: ArrayList<DayOfWeek>) {
view.userRoutingRule.days = dayOfWeekList.sortedBy { it.dayOfWeek }
renderRule()
}
This is the error I'm getting when I run my unit tests with coverage
-IntelliJ Idea Coverage Runner-采样.包括图案: com.mypackage..* 排除模式:[2019.02.02 14:49:40](Coverage):不包含类数据 已提取: com.mypackage\myfile$onDaysSelected$$inlined$sortedBy$1: java.lang.Throwable
Process finished with exit code 0
我的单元测试都相应地通过了,但当我go 查看覆盖率报告时,它几乎完全是空的,因为这个错误阻止了它的完成.
Is there any solution to this at this point? It's hard to know if I missed some condition if I can't just look at the report.