Skip to content

Commit 576ee78

Browse files
committed
Add .xsaccess test data
1 parent 7b3e9b4 commit 576ee78

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

javascript/extractor/test/com/semmle/js/extractor/test/AutoBuildTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ public void basicTest() throws IOException {
182182
addFile(true, LGTM_SRC, "package.json");
183183
addFile(true, LGTM_SRC, ".eslintrc.yml");
184184
addFile(true, LGTM_SRC, "vendor", "leftpad", "index.js");
185+
addFile(true, LGTM_SRC, ".xsaccess");
185186
runTest();
186187
}
187188

@@ -463,8 +464,6 @@ public void hiddenFolders() throws IOException {
463464
public void hiddenFiles() throws IOException {
464465
Path eslintrc = addFile(true, LGTM_SRC, ".eslintrc.json");
465466
hide(eslintrc);
466-
Path xsaccess = addFile(true, LGTM_SRC, ".xsaccess");
467-
hide(xsaccess);
468467
runTest();
469468
}
470469

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"exposed": true // Expose data via http
3+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#10000=@"/.xaccess;sourcefile"
2+
files(#10000,".xaccess")
3+
#10001=@"/;folder"
4+
folders(#10001,"/")
5+
containerparent(#10001,#10000)
6+
#10002=@"loc,{#10000},0,0,0,0"
7+
locations_default(#10002,#10000,0,0,0,0)
8+
hasLocation(#10000,#10002)
9+
#20000=*
10+
json(#20000,5,#10000,0,"{\n ""ex ... http\n}")
11+
#20001=@"loc,{#10000},1,1,3,1"
12+
locations_default(#20001,#10000,1,1,3,1)
13+
json_locations(#20000,#20001)
14+
#20002=*
15+
json(#20002,1,#20000,0,"true")
16+
#20003=@"loc,{#10000},2,14,2,17"
17+
locations_default(#20001,#10000,2,14,2,17)
18+
json_locations(#20000,#20001)
19+
json_literals("true","true",#20002)
20+
json_properties(#20000,"exposed",#20002)
21+
numlines(#10000,3,0,0)
22+
filetype(#10000,"json")

0 commit comments

Comments
 (0)