Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6fd8d63

Browse files
committed
Kotlin: Accept test output
1 parent 9a88626 commit 6fd8d63

6 files changed

Lines changed: 29 additions & 6 deletions

File tree

java/ql/test/kotlin/library-tests/controlflow/basic/bbStmts.expected

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,15 @@
7272
| Test.kt:35:3:35:3 | <Expr>; | 1 | Test.kt:35:7:35:8 | 20 |
7373
| Test.kt:35:3:35:3 | <Expr>; | 2 | Test.kt:35:3:35:3 | ...=... |
7474
| Test.kt:35:3:35:3 | <Expr>; | 3 | Test.kt:38:3:41:3 | while (...) |
75-
| Test.kt:35:3:35:3 | <Expr>; | 4 | Test.kt:38:9:38:9 | x |
76-
| Test.kt:35:3:35:3 | <Expr>; | 5 | Test.kt:38:13:38:13 | 0 |
77-
| Test.kt:35:3:35:3 | <Expr>; | 6 | Test.kt:38:9:38:13 | ... > ... |
75+
| Test.kt:38:9:38:9 | x | 0 | Test.kt:38:9:38:9 | x |
76+
| Test.kt:38:9:38:9 | x | 1 | Test.kt:38:13:38:13 | 0 |
77+
| Test.kt:38:9:38:9 | x | 2 | Test.kt:38:9:38:13 | ... > ... |
7878
| Test.kt:38:16:41:3 | { ... } | 0 | Test.kt:38:16:41:3 | { ... } |
7979
| Test.kt:38:16:41:3 | { ... } | 1 | Test.kt:39:4:39:4 | <Expr>; |
8080
| Test.kt:38:16:41:3 | { ... } | 2 | Test.kt:39:8:39:9 | 10 |
8181
| Test.kt:38:16:41:3 | { ... } | 3 | Test.kt:39:4:39:4 | ...=... |
8282
| Test.kt:38:16:41:3 | { ... } | 4 | Test.kt:40:4:40:6 | <Expr>; |
83+
| Test.kt:38:16:41:3 | { ... } | 5 | Test.kt:40:4:40:6 | (...)... |
8384
| Test.kt:43:3:43:3 | <Expr>; | 0 | Test.kt:43:3:43:3 | <Expr>; |
8485
| Test.kt:43:3:43:3 | <Expr>; | 1 | Test.kt:43:7:43:8 | 30 |
8586
| Test.kt:43:3:43:3 | <Expr>; | 2 | Test.kt:43:3:43:3 | ...=... |
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
| Test.kt:4:13:79:2 | { ... } | Test.kt:18:3:18:3 | <Expr>; |
22
| Test.kt:4:13:79:2 | { ... } | Test.kt:30:15:33:3 | { ... } |
33
| Test.kt:4:13:79:2 | { ... } | Test.kt:35:3:35:3 | <Expr>; |
4+
| Test.kt:4:13:79:2 | { ... } | Test.kt:38:9:38:9 | x |
45
| Test.kt:4:13:79:2 | { ... } | Test.kt:38:16:41:3 | { ... } |
56
| Test.kt:4:13:79:2 | { ... } | Test.kt:43:3:43:3 | <Expr>; |
67
| Test.kt:18:3:18:3 | <Expr>; | Test.kt:30:15:33:3 | { ... } |
78
| Test.kt:18:3:18:3 | <Expr>; | Test.kt:35:3:35:3 | <Expr>; |
9+
| Test.kt:18:3:18:3 | <Expr>; | Test.kt:38:9:38:9 | x |
810
| Test.kt:18:3:18:3 | <Expr>; | Test.kt:38:16:41:3 | { ... } |
911
| Test.kt:18:3:18:3 | <Expr>; | Test.kt:43:3:43:3 | <Expr>; |
12+
| Test.kt:35:3:35:3 | <Expr>; | Test.kt:38:9:38:9 | x |
1013
| Test.kt:35:3:35:3 | <Expr>; | Test.kt:38:16:41:3 | { ... } |
1114
| Test.kt:35:3:35:3 | <Expr>; | Test.kt:43:3:43:3 | <Expr>; |
15+
| Test.kt:38:9:38:9 | x | Test.kt:38:16:41:3 | { ... } |
16+
| Test.kt:38:9:38:9 | x | Test.kt:43:3:43:3 | <Expr>; |

java/ql/test/kotlin/library-tests/controlflow/basic/bbSuccessor.expected

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@
33
| Test.kt:18:3:18:3 | <Expr>; | Test.kt:30:15:33:3 | { ... } |
44
| Test.kt:18:3:18:3 | <Expr>; | Test.kt:35:3:35:3 | <Expr>; |
55
| Test.kt:30:15:33:3 | { ... } | Test.kt:35:3:35:3 | <Expr>; |
6-
| Test.kt:35:3:35:3 | <Expr>; | Test.kt:38:16:41:3 | { ... } |
7-
| Test.kt:35:3:35:3 | <Expr>; | Test.kt:43:3:43:3 | <Expr>; |
6+
| Test.kt:35:3:35:3 | <Expr>; | Test.kt:38:9:38:9 | x |
7+
| Test.kt:38:9:38:9 | x | Test.kt:38:16:41:3 | { ... } |
8+
| Test.kt:38:9:38:9 | x | Test.kt:43:3:43:3 | <Expr>; |
9+
| Test.kt:38:16:41:3 | { ... } | Test.kt:38:9:38:9 | x |

java/ql/test/kotlin/library-tests/controlflow/basic/getASuccessor.expected

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@
9292
| Test.kt:39:4:39:4 | ...=... | AssignExpr | Test.kt:40:4:40:6 | <Expr>; | ExprStmt |
9393
| Test.kt:39:4:39:4 | <Expr>; | ExprStmt | Test.kt:39:8:39:9 | 10 | LongLiteral |
9494
| Test.kt:39:8:39:9 | 10 | LongLiteral | Test.kt:39:4:39:4 | ...=... | AssignExpr |
95-
| Test.kt:40:4:40:6 | <Expr>; | ExprStmt | file://:0:0:0:0 | <none> | <none> |
95+
| Test.kt:40:4:40:6 | (...)... | CastExpr | Test.kt:38:9:38:9 | x | VarAccess |
96+
| Test.kt:40:4:40:6 | <Expr>; | ExprStmt | Test.kt:40:4:40:6 | (...)... | CastExpr |
97+
| Test.kt:40:4:40:6 | void | TypeAccess | file://:0:0:0:0 | <none> | <none> |
9698
| Test.kt:43:3:43:3 | ...=... | AssignExpr | Test.kt:73:3:73:3 | <Expr>; | ExprStmt |
9799
| Test.kt:43:3:43:3 | <Expr>; | ExprStmt | Test.kt:43:7:43:8 | 30 | IntegerLiteral |
98100
| Test.kt:43:7:43:8 | 30 | IntegerLiteral | Test.kt:43:3:43:3 | ...=... | AssignExpr |

java/ql/test/kotlin/library-tests/controlflow/basic/strictPostDominance.expected

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@
169169
| Test.kt:43:3:43:3 | <Expr>; | Test.kt:32:4:32:4 | <Expr>; |
170170
| Test.kt:43:3:43:3 | <Expr>; | Test.kt:35:3:35:3 | <Expr>; |
171171
| Test.kt:43:3:43:3 | <Expr>; | Test.kt:38:3:41:3 | while (...) |
172+
| Test.kt:43:3:43:3 | <Expr>; | Test.kt:38:16:41:3 | { ... } |
173+
| Test.kt:43:3:43:3 | <Expr>; | Test.kt:39:4:39:4 | <Expr>; |
174+
| Test.kt:43:3:43:3 | <Expr>; | Test.kt:40:4:40:6 | <Expr>; |
172175
| Test.kt:73:3:73:3 | <Expr>; | Test.kt:4:13:79:2 | { ... } |
173176
| Test.kt:73:3:73:3 | <Expr>; | Test.kt:5:3:5:16 | var ...; |
174177
| Test.kt:73:3:73:3 | <Expr>; | Test.kt:6:3:6:18 | var ...; |
@@ -190,6 +193,9 @@
190193
| Test.kt:73:3:73:3 | <Expr>; | Test.kt:32:4:32:4 | <Expr>; |
191194
| Test.kt:73:3:73:3 | <Expr>; | Test.kt:35:3:35:3 | <Expr>; |
192195
| Test.kt:73:3:73:3 | <Expr>; | Test.kt:38:3:41:3 | while (...) |
196+
| Test.kt:73:3:73:3 | <Expr>; | Test.kt:38:16:41:3 | { ... } |
197+
| Test.kt:73:3:73:3 | <Expr>; | Test.kt:39:4:39:4 | <Expr>; |
198+
| Test.kt:73:3:73:3 | <Expr>; | Test.kt:40:4:40:6 | <Expr>; |
193199
| Test.kt:73:3:73:3 | <Expr>; | Test.kt:43:3:43:3 | <Expr>; |
194200
| Test.kt:77:3:77:3 | <Expr>; | Test.kt:4:13:79:2 | { ... } |
195201
| Test.kt:77:3:77:3 | <Expr>; | Test.kt:5:3:5:16 | var ...; |
@@ -212,6 +218,9 @@
212218
| Test.kt:77:3:77:3 | <Expr>; | Test.kt:32:4:32:4 | <Expr>; |
213219
| Test.kt:77:3:77:3 | <Expr>; | Test.kt:35:3:35:3 | <Expr>; |
214220
| Test.kt:77:3:77:3 | <Expr>; | Test.kt:38:3:41:3 | while (...) |
221+
| Test.kt:77:3:77:3 | <Expr>; | Test.kt:38:16:41:3 | { ... } |
222+
| Test.kt:77:3:77:3 | <Expr>; | Test.kt:39:4:39:4 | <Expr>; |
223+
| Test.kt:77:3:77:3 | <Expr>; | Test.kt:40:4:40:6 | <Expr>; |
215224
| Test.kt:77:3:77:3 | <Expr>; | Test.kt:43:3:43:3 | <Expr>; |
216225
| Test.kt:77:3:77:3 | <Expr>; | Test.kt:73:3:73:3 | <Expr>; |
217226
| Test.kt:78:3:78:8 | return ... | Test.kt:4:13:79:2 | { ... } |
@@ -235,6 +244,9 @@
235244
| Test.kt:78:3:78:8 | return ... | Test.kt:32:4:32:4 | <Expr>; |
236245
| Test.kt:78:3:78:8 | return ... | Test.kt:35:3:35:3 | <Expr>; |
237246
| Test.kt:78:3:78:8 | return ... | Test.kt:38:3:41:3 | while (...) |
247+
| Test.kt:78:3:78:8 | return ... | Test.kt:38:16:41:3 | { ... } |
248+
| Test.kt:78:3:78:8 | return ... | Test.kt:39:4:39:4 | <Expr>; |
249+
| Test.kt:78:3:78:8 | return ... | Test.kt:40:4:40:6 | <Expr>; |
238250
| Test.kt:78:3:78:8 | return ... | Test.kt:43:3:43:3 | <Expr>; |
239251
| Test.kt:78:3:78:8 | return ... | Test.kt:73:3:73:3 | <Expr>; |
240252
| Test.kt:78:3:78:8 | return ... | Test.kt:77:3:77:3 | <Expr>; |

java/ql/test/kotlin/library-tests/controlflow/dominance/dominator.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
| Test.kt:38:3:41:3 | while (...) | Test.kt:38:10:38:10 | x |
2424
| Test.kt:38:17:41:3 | { ... } | Test.kt:39:4:39:4 | <Expr>; |
2525
| Test.kt:39:4:39:4 | <Expr>; | Test.kt:39:8:39:9 | 10 |
26+
| Test.kt:40:4:40:6 | <Expr>; | Test.kt:40:4:40:6 | (...)... |
2627
| Test.kt:43:3:43:3 | <Expr>; | Test.kt:43:3:43:3 | z |
2728
| Test.kt:73:3:73:3 | <Expr>; | Test.kt:73:3:73:3 | z |
2829
| Test.kt:77:3:77:3 | <Expr>; | Test.kt:77:7:77:8 | 40 |

0 commit comments

Comments
 (0)