Closed p4654545 closed 1 year ago
Jacoco (and other instrumenters) may add instructions at the start of a method. Jacoco typically adds a call to $jacocoInit.
This PR changes the getDebugMetadataInfo logic such that it finds the first occurrence of the required instruction pair.
I made sure that Jacoco only instruments the new class JacocoInstrumentedMethodTest in runtime-test-jvm.kt.
I assume you can somehow squash the commits into one.
Jacoco (and other instrumenters) may add instructions at the start of a method. Jacoco typically adds a call to $jacocoInit.
This PR changes the getDebugMetadataInfo logic such that it finds the first occurrence of the required instruction pair.
I made sure that Jacoco only instruments the new class JacocoInstrumentedMethodTest in runtime-test-jvm.kt.