mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
Add .xsaccess test data
This commit is contained in:
@@ -182,6 +182,7 @@ public class AutoBuildTests {
|
||||
addFile(true, LGTM_SRC, "package.json");
|
||||
addFile(true, LGTM_SRC, ".eslintrc.yml");
|
||||
addFile(true, LGTM_SRC, "vendor", "leftpad", "index.js");
|
||||
addFile(true, LGTM_SRC, ".xsaccess");
|
||||
runTest();
|
||||
}
|
||||
|
||||
@@ -463,8 +464,6 @@ public class AutoBuildTests {
|
||||
public void hiddenFiles() throws IOException {
|
||||
Path eslintrc = addFile(true, LGTM_SRC, ".eslintrc.json");
|
||||
hide(eslintrc);
|
||||
Path xsaccess = addFile(true, LGTM_SRC, ".xsaccess");
|
||||
hide(xsaccess);
|
||||
runTest();
|
||||
}
|
||||
|
||||
|
||||
3
javascript/extractor/tests/xsaccess/input/.xsaccess
Normal file
3
javascript/extractor/tests/xsaccess/input/.xsaccess
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"exposed": true // Expose data via http
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
#10000=@"/.xaccess;sourcefile"
|
||||
files(#10000,".xaccess")
|
||||
#10001=@"/;folder"
|
||||
folders(#10001,"/")
|
||||
containerparent(#10001,#10000)
|
||||
#10002=@"loc,{#10000},0,0,0,0"
|
||||
locations_default(#10002,#10000,0,0,0,0)
|
||||
hasLocation(#10000,#10002)
|
||||
#20000=*
|
||||
json(#20000,5,#10000,0,"{\n ""ex ... http\n}")
|
||||
#20001=@"loc,{#10000},1,1,3,1"
|
||||
locations_default(#20001,#10000,1,1,3,1)
|
||||
json_locations(#20000,#20001)
|
||||
#20002=*
|
||||
json(#20002,1,#20000,0,"true")
|
||||
#20003=@"loc,{#10000},2,14,2,17"
|
||||
locations_default(#20001,#10000,2,14,2,17)
|
||||
json_locations(#20000,#20001)
|
||||
json_literals("true","true",#20002)
|
||||
json_properties(#20000,"exposed",#20002)
|
||||
numlines(#10000,3,0,0)
|
||||
filetype(#10000,"json")
|
||||
Reference in New Issue
Block a user