File tree Expand file tree Collapse file tree
dd-java-agent/agent-debugger/src/test/java/com/datadog/debugger/symbol Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,9 +21,11 @@ public void noopSourceRemapper() {
2121 @ Test
2222 public void kotlinSourceRemapper () {
2323 SourceMap sourceMapMock = mock (SourceMap .class );
24- StratumExt stratumMock = mock (StratumExt .class );
25- when (sourceMapMock .getStratum (eq ("KotlinDebug" ))).thenReturn (stratumMock );
26- when (stratumMock .getInputLine (eq (42 ))).thenReturn (Pair .of ("" , 24 ));
24+ StratumExt stratumMainMock = mock (StratumExt .class );
25+ StratumExt stratumDebugMock = mock (StratumExt .class );
26+ when (sourceMapMock .getStratum (eq ("Kotlin" ))).thenReturn (stratumMainMock );
27+ when (sourceMapMock .getStratum (eq ("KotlinDebug" ))).thenReturn (stratumDebugMock );
28+ when (stratumDebugMock .getInputLine (eq (42 ))).thenReturn (Pair .of ("" , 24 ));
2729 SourceRemapper sourceRemapper = SourceRemapper .getSourceRemapper ("foo.kt" , sourceMapMock );
2830 assertTrue (sourceRemapper instanceof SourceRemapper .KotlinSourceRemapper );
2931 assertEquals (24 , sourceRemapper .remapSourceLine (42 ));
You can’t perform that action at this time.
0 commit comments