mirror of
https://github.com/github/codeql.git
synced 2026-04-28 18:25:24 +02:00
Align tests with new query structure
This commit is contained in:
@@ -1 +0,0 @@
|
||||
| java.time;?;Duration;ofMillis;(long) | 1 |
|
||||
@@ -1 +0,0 @@
|
||||
Telemetry/ExternalAPIUsages.ql
|
||||
@@ -1 +1 @@
|
||||
rt.jar | 3 |
|
||||
| rt.jar | 3 |
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
| java.io;?;FileWriter;FileWriter;(File) | 1 |
|
||||
| java.net;?;URL;openStream;() | 1 |
|
||||
@@ -0,0 +1,11 @@
|
||||
import java.io.File;
|
||||
import java.io.FileWriter;
|
||||
import java.io.IOException;
|
||||
import java.net.URL;
|
||||
|
||||
class SupportedExternalSinks {
|
||||
public static void main(String[] args) throws Exception {
|
||||
new FileWriter(new File("foo"));
|
||||
new URL("http://foo").openStream();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
Telemetry/SupportedExternalSinks.ql
|
||||
@@ -0,0 +1 @@
|
||||
| java.net;?;URLConnection;getInputStream;() | 1 |
|
||||
@@ -0,0 +1,9 @@
|
||||
import java.io.InputStream;
|
||||
import java.net.URL;
|
||||
|
||||
class SupportedExternalSources {
|
||||
public static void main(String[] args) throws Exception {
|
||||
URL github = new URL("https://www.github.com/");
|
||||
InputStream stream = github.openConnection().getInputStream();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
Telemetry/SupportedExternalSources.ql
|
||||
@@ -0,0 +1,2 @@
|
||||
| java.lang;?;StringBuilder;append;(String) | 1 |
|
||||
| java.lang;?;StringBuilder;toString;() | 1 |
|
||||
@@ -0,0 +1,7 @@
|
||||
class SupportedExternalTaint {
|
||||
public static void main(String[] args) throws Exception {
|
||||
StringBuilder builder = new StringBuilder();
|
||||
builder.append("foo");
|
||||
builder.toString();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
Telemetry/SupportedExternalTaint.ql
|
||||
@@ -0,0 +1,6 @@
|
||||
| java.io;?;PrintStream;println;(Object) | 3 |
|
||||
| java.lang;?;Object;Object;() | 2 |
|
||||
| java.lang;?;String;length;() | 1 |
|
||||
| java.time;?;Duration;ofMillis;(long) | 1 |
|
||||
| java.util;?;ArrayList;ArrayList<>;() | 1 |
|
||||
| java.util;?;HashMap;HashMap<String,Object>;() | 1 |
|
||||
@@ -0,0 +1 @@
|
||||
Telemetry/UnsupportedExternalAPIs.ql
|
||||
Reference in New Issue
Block a user