Skip to content

Commit abed936

Browse files
author
Stephan Brandauer
committed
Java: tests for automodel framework mode positive example extraction
1 parent 1bc222e commit abed936

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
| java/nio/file/Files.java:9:29:9:39 | source | path-injection\nrelated locations: $@, $@.\nmetadata: $@, $@, $@, $@, $@, $@, $@. | java/nio/file/Files.java:9:29:9:39 | source | MethodDoc | java/nio/file/Files.java:9:29:9:39 | source | ClassDoc | file://java.nio.file:1:1:1:1 | java.nio.file | package | file://Files:1:1:1:1 | Files | type | file://false:1:1:1:1 | false | subtypes | file://copy:1:1:1:1 | copy | name | file://(Path,OutputStream):1:1:1:1 | (Path,OutputStream) | signature | file://Argument[0]:1:1:1:1 | Argument[0] | input | file://source:1:1:1:1 | source | parameterName |
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Telemetry/AutomodelFrameworkModeExtractPositiveExamples.ql
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package java.nio.file;
2+
3+
import java.nio.file.Path;
4+
import java.io.IOException;
5+
import java.io.OutputStream;
6+
7+
public class Files {
8+
// source is a positive example because there's a model for it
9+
public static void copy(Path source, OutputStream out) throws IOException {
10+
// ...
11+
}
12+
}

0 commit comments

Comments
 (0)