Switch test to using a qlref to the real telemetry query

This commit is contained in:
Chris Smowton
2024-02-28 10:59:44 +00:00
parent ef82ea7541
commit 3bd0c3b2c2
4 changed files with 20 additions and 16 deletions

View File

@@ -0,0 +1,19 @@
| Annotation processors enabled: true | 1 |
| Number of calls with call target | 1 |
| Number of calls with missing call target | 4 |
| Number of diagnostics from CodeQL Java extractor with severity 5 | 10 |
| Number of diagnostics from CodeQL Java extractor with severity 6 | 2 |
| Number of expressions with known type | 1 |
| Number of expressions with unknown type | 6 |
| Number of files | 607 |
| Number of files with extension class | 604 |
| Number of files with extension java | 1 |
| Number of files with extension properties | 1 |
| Number of lines of code | 7 |
| Number of lines of code with extension java | 7 |
| Percentage of calls with call target | 20 |
| Total number of diagnostics from CodeQL Java extractor | 12 |
| Total number of lines | 13 |
| Total number of lines with extension java | 13 |
| Used annotation processor: lombok.launch.AnnotationProcessorHider$AnnotationProcessor | 1 |
| Used annotation processor: lombok.launch.AnnotationProcessorHider$ClaimingProcessor | 1 |

View File

@@ -0,0 +1 @@
Telemetry/ExtractorInformation.ql

View File

@@ -1,9 +0,0 @@
callTargets
#select
| Test.java:5:17:5:20 | void | file://:0:0:0:0 | void |
| Test.java:7:5:7:7 | <TypeAccess of ErrorType> | file://:0:0:0:0 | <CodeQL error type> |
| Test.java:7:5:7:20 | <Call to unknown method> | file://:0:0:0:0 | <CodeQL error type> |
| Test.java:8:5:8:24 | <Call to unknown method> | file://:0:0:0:0 | <CodeQL error type> |
| Test.java:8:5:8:34 | <Call to unknown method> | file://:0:0:0:0 | <CodeQL error type> |
| Test.java:8:6:8:14 | <ClassInstanceExpr that calls a missing constructor> | file://:0:0:0:0 | <CodeQL error type> |
| Test.java:8:10:8:12 | <TypeAccess of ErrorType> | file://:0:0:0:0 | <CodeQL error type> |

View File

@@ -1,7 +0,0 @@
import java
query Callable callTargets(MethodCall mc) { result = mc.getCallee() }
from Expr e
where e.getFile().getBaseName() = "Test.java"
select e, e.getType()