Skip to content

Commit 140c318

Browse files
committed
Adjust test expectations
1 parent 3bd0c3b commit 140c318

File tree

13 files changed

+29
-3
lines changed

13 files changed

+29
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
| Number of calls with call target | 1 |
2+
| Number of calls with missing call target | 0 |
3+
| Number of expressions with known type | 0 |
4+
| Number of expressions with unknown type | 0 |
15
| Number of files with extension jar | 1 |
26
| Number of files with extension kt | 1 |
37
| Number of lines of code | 2 |
48
| Number of lines of code with extension kt | 2 |
9+
| Percentage of calls with call target | 100 |
510
| Total number of lines | 3 |
611
| Total number of lines with extension kt | 3 |
712
| Uses Kotlin 2: false | 1 |
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
| Number of calls with call target | 1 |
2+
| Number of calls with missing call target | 0 |
3+
| Number of expressions with known type | 0 |
4+
| Number of expressions with unknown type | 0 |
15
| Number of files with extension jar | 1 |
26
| Number of files with extension kt | 1 |
37
| Number of lines of code | 2 |
48
| Number of lines of code with extension kt | 2 |
9+
| Percentage of calls with call target | 100 |
510
| Total number of lines | 3 |
611
| Total number of lines with extension kt | 3 |
712
| Uses Kotlin 2: true | 1 |

java/ql/test/library-tests/errorexpr/Test.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ public int yieldWrapper(int x) {
1515
// Diagnostic Matches: Erroneous node in tree: (ERROR)
1616
// Diagnostic Matches: In file Test.java:8:15 no end location for JCMethodInvocation : yield(x)
1717
// Diagnostic Matches: 1 errors during annotation processing
18+
// Diagnostic Matches: Unknown or erroneous type for expression of kind ErrorExpr
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
| Test.java:1:30:1:48 | Unknown or erroneous type for expression of kind TypeAccess |
12
| file://:0:0:0:0 | 1 errors during annotation processing |
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
| Test.java:1:30:1:48 | <TypeAccess of ErrorType> |

java/ql/test/library-tests/errortype-with-params/PrintAst.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ Test.java:
22
# 0| [CompilationUnit] Test
33
# 1| 1: [Class] Test
44
#-----| -1: (Base Types)
5-
# 1| 0: [TypeAccess] <any>
5+
# 1| 0: [TypeAccess] <TypeAccess of ErrorType>
66
# 1| 0: [TypeAccess] String
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
public class Test implements Unavailable<String> { }
22

33
// Diagnostic Matches: 1 errors during annotation processing
4+
// Diagnostic Matches: Unknown or erroneous type for expression of kind TypeAccess
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
| Test.java:0:0:0:0 | 2 javac errors |
2+
| Test.java:6:5:6:15 | Unknown or erroneous type for expression of kind TypeAccess |
23
| Test.java:6:23:6:39 | Unexpected symbol for constructor: new NoSuchClass() |
4+
| Test.java:6:23:6:39 | Unknown or erroneous type for expression of kind ClassInstanceCreation |
5+
| Test.java:6:27:6:37 | Unknown or erroneous type for expression of kind TypeAccess |
36
| file://:0:0:0:0 | 2 errors during annotation processing |
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
| Test.java:6:5:6:15 | <TypeAccess of ErrorType> |
2+
| Test.java:6:23:6:39 | <ClassInstanceExpr that calls a missing constructor> |
3+
| Test.java:6:27:6:37 | <TypeAccess of ErrorType> |
14
| Test.java:7:12:7:14 | nsc |

java/ql/test/library-tests/errortype/PrintAst.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Test.java:
77
# 5| 3: [TypeAccess] NoSuchClass
88
# 5| 5: [BlockStmt] { ... }
99
# 6| 0: [LocalVariableDeclStmt] var ...;
10-
# 6| 0: [TypeAccess] NoSuchClass
10+
# 6| 0: [TypeAccess] <TypeAccess of ErrorType>
1111
# 6| 1: [LocalVariableDeclExpr] nsc
1212
# 6| 0: [ClassInstanceExpr] <ClassInstanceExpr that calls a missing constructor>
13-
# 6| -3: [TypeAccess] NoSuchClass
13+
# 6| -3: [TypeAccess] <TypeAccess of ErrorType>
1414
# 7| 1: [ReturnStmt] return ...
1515
# 7| 0: [VarAccess] nsc

0 commit comments

Comments
 (0)