Kotlin functions marked with inline
keyword are, well, inlined during the compilation and it seems that code coverage tools (like JaCoCo) fail to prope
I don't believe it is possible to turn off inlining since some functions may not make any sense if they are not inlined. These include functions with reified
types (since the inlining creates the availability of type information) and functions with lambdas as parameters, since they can affect the control flow of the method they are inlined in.
There is the bug in the JetBrains Java Coverage tools, see https://youtrack.jetbrains.com/issue/KT-12605 .
So, just wait until bug will be fixed (or vote on it, to speedup development)