Adjust test expectations

This commit is contained in:
Chris Smowton
2024-02-28 11:00:16 +00:00
parent 3bd0c3b2c2
commit 140c3189e3
13 changed files with 29 additions and 3 deletions

View File

@@ -1,7 +1,12 @@
| Number of calls with call target | 1 |
| Number of calls with missing call target | 0 |
| Number of expressions with known type | 0 |
| Number of expressions with unknown type | 0 |
| Number of files with extension jar | 1 |
| Number of files with extension kt | 1 |
| Number of lines of code | 2 |
| Number of lines of code with extension kt | 2 |
| Percentage of calls with call target | 100 |
| Total number of lines | 3 |
| Total number of lines with extension kt | 3 |
| Uses Kotlin 2: false | 1 |

View File

@@ -1,7 +1,12 @@
| Number of calls with call target | 1 |
| Number of calls with missing call target | 0 |
| Number of expressions with known type | 0 |
| Number of expressions with unknown type | 0 |
| Number of files with extension jar | 1 |
| Number of files with extension kt | 1 |
| Number of lines of code | 2 |
| Number of lines of code with extension kt | 2 |
| Percentage of calls with call target | 100 |
| Total number of lines | 3 |
| Total number of lines with extension kt | 3 |
| Uses Kotlin 2: true | 1 |

View File

@@ -15,3 +15,4 @@ public class Test {
// Diagnostic Matches: Erroneous node in tree: (ERROR)
// Diagnostic Matches: In file Test.java:8:15 no end location for JCMethodInvocation : yield(x)
// Diagnostic Matches: 1 errors during annotation processing
// Diagnostic Matches: Unknown or erroneous type for expression of kind ErrorExpr

View File

@@ -1 +1,2 @@
| Test.java:1:30:1:48 | Unknown or erroneous type for expression of kind TypeAccess |
| file://:0:0:0:0 | 1 errors during annotation processing |

View File

@@ -0,0 +1 @@
| Test.java:1:30:1:48 | <TypeAccess of ErrorType> |

View File

@@ -2,5 +2,5 @@ Test.java:
# 0| [CompilationUnit] Test
# 1| 1: [Class] Test
#-----| -1: (Base Types)
# 1| 0: [TypeAccess] <any>
# 1| 0: [TypeAccess] <TypeAccess of ErrorType>
# 1| 0: [TypeAccess] String

View File

@@ -1,3 +1,4 @@
public class Test implements Unavailable<String> { }
// Diagnostic Matches: 1 errors during annotation processing
// Diagnostic Matches: Unknown or erroneous type for expression of kind TypeAccess

View File

@@ -1,3 +1,6 @@
| Test.java:0:0:0:0 | 2 javac errors |
| Test.java:6:5:6:15 | Unknown or erroneous type for expression of kind TypeAccess |
| Test.java:6:23:6:39 | Unexpected symbol for constructor: new NoSuchClass() |
| Test.java:6:23:6:39 | Unknown or erroneous type for expression of kind ClassInstanceCreation |
| Test.java:6:27:6:37 | Unknown or erroneous type for expression of kind TypeAccess |
| file://:0:0:0:0 | 2 errors during annotation processing |

View File

@@ -1 +1,4 @@
| Test.java:6:5:6:15 | <TypeAccess of ErrorType> |
| Test.java:6:23:6:39 | <ClassInstanceExpr that calls a missing constructor> |
| Test.java:6:27:6:37 | <TypeAccess of ErrorType> |
| Test.java:7:12:7:14 | nsc |

View File

@@ -7,9 +7,9 @@ Test.java:
# 5| 3: [TypeAccess] NoSuchClass
# 5| 5: [BlockStmt] { ... }
# 6| 0: [LocalVariableDeclStmt] var ...;
# 6| 0: [TypeAccess] NoSuchClass
# 6| 0: [TypeAccess] <TypeAccess of ErrorType>
# 6| 1: [LocalVariableDeclExpr] nsc
# 6| 0: [ClassInstanceExpr] <ClassInstanceExpr that calls a missing constructor>
# 6| -3: [TypeAccess] NoSuchClass
# 6| -3: [TypeAccess] <TypeAccess of ErrorType>
# 7| 1: [ReturnStmt] return ...
# 7| 0: [VarAccess] nsc

View File

@@ -12,3 +12,5 @@ public class Test {
// Diagnostic Matches: Unexpected symbol for constructor: new NoSuchClass()
// Diagnostic Matches: 2 javac errors
// Diagnostic Matches: 2 errors during annotation processing
// Diagnostic Matches: Unknown or erroneous type for expression of kind TypeAccess
// Diagnostic Matches: Unknown or erroneous type for expression of kind ClassInstanceCreation

View File

@@ -1,2 +1,4 @@
| Test.java:0:0:0:0 | 1 javac errors |
| Test.java:4:13:4:30 | Unable to extract method reference Unavailable.f()::g with no owner type |
| Test.java:4:13:4:30 | Unknown or erroneous type for expression of kind MemberReference |
| Test.java:4:13:4:30 | Unknown or erroneous type for expression of kind TypeAccess |

View File

@@ -8,3 +8,5 @@ public class Test {
// Diagnostic Matches: 1 javac errors
// Diagnostic Matches: Unable to extract method reference Unavailable.f()::g with no owner type
// Diagnostic Matches: Unknown or erroneous type for expression of kind MemberReference
// Diagnostic Matches: Unknown or erroneous type for expression of kind TypeAccess