Skip to content

Commit

Permalink
[K/Wasm] Change format of the stepping tests output
Browse files Browse the repository at this point in the history
Merge-request: KT-MR-19425
Merged-by: Artem Kobzar <[email protected]>
  • Loading branch information
JSMonk authored and qodana-bot committed Dec 18, 2024
1 parent d9b5839 commit 5910b87
Show file tree
Hide file tree
Showing 112 changed files with 1,349 additions and 828 deletions.
6 changes: 3 additions & 3 deletions compiler/testData/debug/stepping/IfTrueThenFalse.kt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fun box() {
// test.kt:10 box

// EXPECTATIONS WASM
// test.kt:6 $box
// test.kt:6 $box (8)
// test.kt:3 $cond (13, 18)
// test.kt:9 $box
// test.kt:10 $box
// test.kt:9 $box (9)
// test.kt:10 $box (1)
9 changes: 5 additions & 4 deletions compiler/testData/debug/stepping/anonymousFunction.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ fun box() {
// test.kt:10 box

// EXPECTATIONS WASM
// test.kt:7 $box
// test.kt:4 $eval (27, 27, 27, 30)
// test.kt:8 $box$lambda.invoke (8, 8, 8, 8, 12)
// test.kt:10 $box
// test.kt:7 $box (4)
// test.kt:4 $eval (27)
// test.kt:8 $box$lambda.invoke (8, 12)
// test.kt:4 $eval (30)
// test.kt:10 $box (1)
6 changes: 3 additions & 3 deletions compiler/testData/debug/stepping/anonymousFunctionDirect.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ fun box() {
// test.kt:8 box

// EXPECTATIONS WASM
// test.kt:5 $box (4, 4, 4)
// test.kt:6 $box$lambda.invoke (8, 8, 8, 8, 12)
// test.kt:8 $box
// test.kt:5 $box (4)
// test.kt:6 $box$lambda.invoke (8, 12)
// test.kt:8 $box (1)
8 changes: 4 additions & 4 deletions compiler/testData/debug/stepping/assertion.kt
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ fun box(): String {

// EXPECTATIONS WASM
// test.kt:26 $box (12, 4)
// test.kt:17 $box (57, 57)
// test.kt:18 $box
// test.kt:17 $box (57)
// test.kt:18 $box (8)
// test.kt:19 $box (13, 12)
// test.kt:27 $box (12, 4)
// test.kt:8 $box
// test.kt:8 $box (8)
// test.kt:9 $box (13, 12)
// test.kt:31 $box (11, 11, 11, 11, 4)
// test.kt:31 $box (11, 4)
20 changes: 12 additions & 8 deletions compiler/testData/debug/stepping/beforeGotoToWhileStart.kt
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,15 @@ fun box() {
// test.kt:21 box

// EXPECTATIONS WASM
// test.kt:20 $box
// test.kt:12 $foo (11, 11, 11, 11, 11, 11)
// test.kt:13 $foo (12, 12)
// test.kt:7 $alternate (15, 14, 4, 15, 14, 4)
// test.kt:8 $alternate (11, 4, 11, 4)
// test.kt:14 $foo
// test.kt:17 $foo
// test.kt:21 $box
// test.kt:20 $box (4)
// test.kt:12 $foo (11)
// test.kt:13 $foo (12)
// test.kt:7 $alternate (15, 14, 4)
// test.kt:8 $alternate (11, 4)
// test.kt:12 $foo (11)
// test.kt:13 $foo (12)
// test.kt:7 $alternate (15, 14, 4)
// test.kt:8 $alternate (11, 4)
// test.kt:14 $foo (12)
// test.kt:17 $foo (1)
// test.kt:21 $box (1)
21 changes: 14 additions & 7 deletions compiler/testData/debug/stepping/callWithCallInArguments.kt
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,18 @@ fun box() {
// test.kt:15 box

// EXPECTATIONS WASM
// test.kt:9 $box (12, 12)
// test.kt:4 $A.<init> (7, 7, 7, 7)
// test.kt:9 $box (12)
// test.kt:4 $A.<init> (7)
// test.kt:12 $box (24, 20)
// test.kt:6 $bar (16, 16, 19, 16, 16, 19, 16, 16, 19)
// test.kt:11 $box
// test.kt:10 $box

// test.kt:15 $box
// test.kt:6 $bar (16)
// test.kt:4 $A.<init> (7)
// test.kt:6 $bar (19)
// test.kt:11 $box (12)
// test.kt:6 $bar (16)
// test.kt:4 $A.<init> (7)
// test.kt:6 $bar (19)
// test.kt:10 $box (4)
// test.kt:6 $bar (16)
// test.kt:4 $A.<init> (7)
// test.kt:6 $bar (19)
// test.kt:15 $box (1)
14 changes: 7 additions & 7 deletions compiler/testData/debug/stepping/callWithReceiver.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ fun box() {
// test.kt:16 box

// EXPECTATIONS WASM
// test.kt:10 $box (12, 12)
// test.kt:7 $A.<init>
// test.kt:11 $box
// test.kt:12 $box
// test.kt:10 $box (12)
// test.kt:7 $A.<init> (1)
// test.kt:11 $box (4)
// test.kt:12 $box (6)
// test.kt:5 $A.foo (16, 20)
// test.kt:14 $box
// test.kt:15 $box
// test.kt:14 $box (4)
// test.kt:15 $box (6)
// test.kt:6 $box (23, 27)
// test.kt:16 $box
// test.kt:16 $box (1)
10 changes: 5 additions & 5 deletions compiler/testData/debug/stepping/callableReference.kt
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ fun f(block: () -> Unit) {
// test.kt:8 box

// EXPECTATIONS WASM
// test.kt:4 $box (12, 12, 4)
// test.kt:5 $box (6, 6, 4)
// test.kt:11 $f (4, 4, 4)
// test.kt:4 $box (12, 4)
// test.kt:5 $box (6, 4)
// test.kt:11 $f (4)
// test.kt:6 $box$lambda.invoke (8, 12, 8, 16)
// test.kt:12 $f
// test.kt:8 $box
// test.kt:12 $f (1)
// test.kt:8 $box (1)
16 changes: 9 additions & 7 deletions compiler/testData/debug/stepping/chainCall.kt
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,14 @@ fun box() {
// test.kt:16 box

// EXPECTATIONS WASM
// test.kt:10 $box (12, 12)
// test.kt:7 $A.<init>
// test.kt:10 $box (12)
// test.kt:7 $A.<init> (1)
// test.kt:11 $box (4, 6)
// test.kt:5 $A.foo (16, 20, 16, 20)
// test.kt:12 $box
// test.kt:5 $A.foo (16, 20)
// test.kt:12 $box (9)
// test.kt:5 $A.foo (16, 20)
// test.kt:14 $box (4, 6)
// test.kt:6 $box (23, 27, 23, 27)
// test.kt:15 $box
// test.kt:16 $box
// test.kt:6 $box (23, 27)
// test.kt:15 $box (9)
// test.kt:6 $box (23, 27)
// test.kt:16 $box (1)
14 changes: 7 additions & 7 deletions compiler/testData/debug/stepping/class.kt
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ fun box() {
// test.kt:16 box

// EXPECTATIONS WASM
// test.kt:13 $box
// test.kt:5 $A.<init> (15, 15, 15)
// test.kt:10 $A.<init>
// test.kt:14 $box (4, 6, 6)
// test.kt:13 $box (12)
// test.kt:5 $A.<init> (15)
// test.kt:10 $A.<init> (1)
// test.kt:14 $box (4, 6)
// test.kt:15 $box (4, 6)
// test.kt:8 $A.foo (8, 8, 8)
// test.kt:9 $A.foo
// test.kt:16 $box
// test.kt:8 $A.foo (8)
// test.kt:9 $A.foo (5)
// test.kt:16 $box (1)
10 changes: 5 additions & 5 deletions compiler/testData/debug/stepping/classObject.kt
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ fun box() {
// test.kt:18 box

// EXPECTATIONS WASM
// test.kt:15 $box (6, 6)
// test.kt:16 $box (6, 6)
// test.kt:17 $box
// test.kt:9 $Companion.foo (19, 19, 27, 27, 19, 12)
// test.kt:18 $box
// test.kt:15 $box (6)
// test.kt:16 $box (6)
// test.kt:17 $box (6)
// test.kt:9 $Companion.foo (19, 27, 19, 12)
// test.kt:18 $box (1)
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,16 @@ fun box() {
// test.kt:19 box

// EXPECTATIONS WASM
// test.kt:18 $box
// test.kt:10 $flaf
// test.kt:7 $flaf (46, 57)
// test.kt:6 $foo (39, 39, 39, 46)
// test.kt:7 $flaf$lambda.invoke (52, 55)
// test.kt:11 $flaf$lambda.invoke
// test.kt:12 $flaf$lambda.invoke (12, 12, 15)
// test.kt:13 $flaf$lambda.invoke
// test.kt:15 $flaf
// test.kt:19 $box
// test.kt:18 $box (4)
// test.kt:10 $flaf (4)
// test.kt:7 $flaf (46)
// test.kt:6 $foo (39)
// test.kt:7 $flaf$lambda.invoke (52)
// test.kt:11 $flaf$lambda.invoke (8)
// test.kt:12 $flaf$lambda.invoke (12, 15)
// test.kt:13 $flaf$lambda.invoke (9)
// test.kt:7 $flaf$lambda.invoke (55)
// test.kt:6 $foo (46)
// test.kt:7 $flaf (57)
// test.kt:15 $flaf (1)
// test.kt:19 $box (1)
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ fun box() {

// EXPECTATIONS WASM
// test.kt:21 $box (17, 4)
// test.kt:22 $box
// test.kt:9 $box (4, 4)
// test.kt:15 $<no name provided>.<init> (12, 12)
// test.kt:11 $<no name provided>.bar
// test.kt:23 $<no name provided>.bar (8, 8, 8)
// test.kt:22 $box (4)
// test.kt:9 $box (4)
// test.kt:15 $<no name provided>.<init> (12)
// test.kt:11 $<no name provided>.bar (12)
// test.kt:23 $<no name provided>.bar (8)
// test.kt:25 $<no name provided>.<init> (16, 25, 16)
// test.kt:27 $<no name provided>.<init>
// test.kt:27 $<no name provided>.bar
// test.kt:12 $<no name provided>.bar
// test.kt:17 $<no name provided>.<init>
// test.kt:29 $box
// test.kt:27 $<no name provided>.<init> (9)
// test.kt:27 $<no name provided>.bar (9)
// test.kt:12 $<no name provided>.bar (9)
// test.kt:17 $<no name provided>.<init> (5)
// test.kt:29 $box (1)
6 changes: 3 additions & 3 deletions compiler/testData/debug/stepping/commentBeforeClass.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ class A {
// test.kt:6 box

// EXPECTATIONS WASM
// test.kt:5 $box (4, 4)
// test.kt:11 $A.<init>
// test.kt:6 $box
// test.kt:5 $box (4)
// test.kt:11 $A.<init> (1)
// test.kt:6 $box (1)
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ fun box() {
// test.kt:13 box

// EXPECTATIONS WASM
// test.kt:12 $box
// test.kt:13 $box
// test.kt:12 $box (19)
// test.kt:13 $box (1)
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fun box() {
// test.kt:11 box

// EXPECTATIONS WASM
// test.kt:10 $box (4, 4, 4, 4)
// test.kt:5 $foo$default (0, 0, 0, 17, 17, 0)
// test.kt:10 $box (4)
// test.kt:5 $foo$default (0, 17, 0)
// test.kt:6 $foo (11, 4)
// test.kt:11 $box
// test.kt:11 $box (1)
15 changes: 9 additions & 6 deletions compiler/testData/debug/stepping/comments.kt
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,12 @@ class A {
// test.kt:8 box

// EXPECTATIONS WASM
// test.kt:6 $box (4, 4, 8)
// test.kt:33 $A.<init> (1, 1)
// test.kt:25 $A.foo
// test.kt:7 $box (4, 8)
// test.kt:32 $A.bar
// test.kt:8 $box
// test.kt:6 $box (4)
// test.kt:33 $A.<init> (1)
// test.kt:6 $box (8)
// test.kt:25 $A.foo (5)
// test.kt:7 $box (4)
// test.kt:33 $A.<init> (1)
// test.kt:7 $box (8)
// test.kt:32 $A.bar (5)
// test.kt:8 $box (1)
6 changes: 3 additions & 3 deletions compiler/testData/debug/stepping/compileTimeConstant.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ fun box() {
// test.kt:7 box

// EXPECTATIONS WASM
// test.kt:6 $box
// test.kt:5 $box
// test.kt:7 $box
// test.kt:6 $box (12)
// test.kt:5 $box (4)
// test.kt:7 $box (1)
11 changes: 6 additions & 5 deletions compiler/testData/debug/stepping/conjunction.kt
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,12 @@ fun getD() = true
// test.kt:12 box

// EXPECTATIONS WASM
// test.kt:4 $box (16, 4)
// test.kt:4 $box (16)
// test.kt:14 $getA (13, 17)
// test.kt:5 $box
// test.kt:5 $box (11)
// test.kt:16 $getB (13, 17)
// test.kt:6 $box
// test.kt:6 $box (11)
// test.kt:18 $getC (13, 18)
// test.kt:10 $box
// test.kt:12 $box
// test.kt:10 $box (8)
// test.kt:4 $box (4)
// test.kt:12 $box (1)
6 changes: 3 additions & 3 deletions compiler/testData/debug/stepping/constantConditions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fun test(): Long {
// test.kt:7 box

// EXPECTATIONS WASM
// test.kt:6 $box
// test.kt:11 $test
// test.kt:6 $box (4)
// test.kt:11 $test (8)
// test.kt:12 $test (15, 8)
// test.kt:7 $box
// test.kt:7 $box (1)
24 changes: 16 additions & 8 deletions compiler/testData/debug/stepping/constructorCall.kt
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,19 @@ fun box() {
// test.kt:15 box

// EXPECTATIONS WASM
// test.kt:7 $box (4, 6, 4, 4)
// test.kt:4 $A.<init> (8, 8, 8, 19, 8, 8, 8, 19, 8, 8, 8, 19, 8, 8, 8, 19)
// test.kt:8 $box (4, 4, 4)
// test.kt:9 $box
// test.kt:11 $box (4, 6, 4, 4)
// test.kt:13 $box (4, 4)
// test.kt:14 $box
// test.kt:15 $box
// test.kt:7 $box (4, 6, 4)
// test.kt:4 $A.<init> (8, 19)
// test.kt:7 $box (4)
// test.kt:8 $box (4)
// test.kt:9 $box (8)
// test.kt:8 $box (4)
// test.kt:4 $A.<init> (8, 19)
// test.kt:8 $box (4)
// test.kt:11 $box (4, 6, 4)
// test.kt:4 $A.<init> (8, 19)
// test.kt:11 $box (4)
// test.kt:13 $box (4)
// test.kt:14 $box (8)
// test.kt:13 $box (4)
// test.kt:4 $A.<init> (8, 19)
// test.kt:15 $box (1)
Loading

0 comments on commit 5910b87

Please sign in to comment.