mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
Merge pull request #18554 from smowton/smowton/admin/test-gbk-xml-extraction
Java: Add tests for XML and Java extraction with GBK charset
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
Test.java:
|
||||
# 0| [CompilationUnit] Test
|
||||
# 1| 1: [Class] Test
|
||||
@@ -0,0 +1 @@
|
||||
semmle/code/java/PrintAst.ql
|
||||
4
java/ql/test/library-tests/comment-encoding/Test.java
Normal file
4
java/ql/test/library-tests/comment-encoding/Test.java
Normal file
@@ -0,0 +1,4 @@
|
||||
public class Test {
|
||||
}
|
||||
|
||||
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
1
java/ql/test/library-tests/comment-encoding/options
Normal file
1
java/ql/test/library-tests/comment-encoding/options
Normal file
@@ -0,0 +1 @@
|
||||
//semmle-extractor-options: --encoding GBK
|
||||
@@ -0,0 +1 @@
|
||||
| Test.java:4:1:4:7 | // \u4f60\u597d\u4e16\u754c |
|
||||
4
java/ql/test/library-tests/comment-encoding/toString.ql
Normal file
4
java/ql/test/library-tests/comment-encoding/toString.ql
Normal file
@@ -0,0 +1,4 @@
|
||||
import java
|
||||
|
||||
from Javadoc c
|
||||
select c
|
||||
Reference in New Issue
Block a user