Skip to content

Commit b0d4e79

Browse files
committed
split out trap tests to avoid "package.json" naming conflict in trap test
1 parent 3093468 commit b0d4e79

File tree

8 files changed

+36
-30
lines changed

8 files changed

+36
-30
lines changed

javascript/extractor/tests/moduleTypes/input/invalid1/package.json renamed to javascript/extractor/tests/moduleTypes1/input/package.json

File renamed without changes.

javascript/extractor/tests/moduleTypes/input/invalid1/tst.js renamed to javascript/extractor/tests/moduleTypes1/input/tst.js

File renamed without changes.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#10000=@"/package.json;sourcefile"
2+
files(#10000,"/package.json","package","json",0)
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_errors(#20000,"Error: Unexpected token")
11+
#20001=@"loc,{#10000},3,1,3,1"
12+
locations_default(#20001,#10000,3,1,3,1)
13+
hasLocation(#20000,#20001)
14+
numlines(#10000,3,0,0)
15+
filetype(#10000,"json")

javascript/extractor/tests/moduleTypes/output/trap/tst.js.trap renamed to javascript/extractor/tests/moduleTypes1/output/trap/tst.js.trap

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
#10000=@"/invalid1/tst.js;sourcefile"
2-
files(#10000,"/invalid1/tst.js","tst","js",0)
3-
#10001=@"/invalid1;folder"
4-
folders(#10001,"/invalid1","invalid1")
5-
#10002=@"/;folder"
6-
folders(#10002,"/","")
7-
containerparent(#10002,#10001)
1+
#10000=@"/tst.js;sourcefile"
2+
files(#10000,"/tst.js","tst","js",0)
3+
#10001=@"/;folder"
4+
folders(#10001,"/","")
85
containerparent(#10001,#10000)
9-
#10003=@"loc,{#10000},0,0,0,0"
10-
locations_default(#10003,#10000,0,0,0,0)
11-
hasLocation(#10000,#10003)
6+
#10002=@"loc,{#10000},0,0,0,0"
7+
locations_default(#10002,#10000,0,0,0,0)
8+
hasLocation(#10000,#10002)
129
#20000=@"global_scope"
1310
scopes(#20000,0)
1411
#20001=@"script;{#10000},1,1"

javascript/extractor/tests/moduleTypes/input/invalid2/package.json renamed to javascript/extractor/tests/moduleTypes2/input/package.json

File renamed without changes.

javascript/extractor/tests/moduleTypes/input/invalid2/tst2.js renamed to javascript/extractor/tests/moduleTypes2/input/tst2.js

File renamed without changes.

javascript/extractor/tests/moduleTypes/output/trap/package.json.trap renamed to javascript/extractor/tests/moduleTypes2/output/trap/package.json.trap

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
#10000=@"/invalid2/package.json;sourcefile"
2-
files(#10000,"/invalid2/package.json","package","json",0)
3-
#10001=@"/invalid2;folder"
4-
folders(#10001,"/invalid2","invalid2")
5-
#10002=@"/;folder"
6-
folders(#10002,"/","")
7-
containerparent(#10002,#10001)
1+
#10000=@"/package.json;sourcefile"
2+
files(#10000,"/package.json","package","json",0)
3+
#10001=@"/;folder"
4+
folders(#10001,"/","")
85
containerparent(#10001,#10000)
9-
#10003=@"loc,{#10000},0,0,0,0"
10-
locations_default(#10003,#10000,0,0,0,0)
11-
hasLocation(#10000,#10003)
6+
#10002=@"loc,{#10000},0,0,0,0"
7+
locations_default(#10002,#10000,0,0,0,0)
8+
hasLocation(#10000,#10002)
129
#20000=*
1310
json(#20000,5,#10000,0,"{\n ""type"": 123\n}")
1411
#20001=@"loc,{#10000},1,1,3,1"

javascript/extractor/tests/moduleTypes/output/trap/tst2.js.trap renamed to javascript/extractor/tests/moduleTypes2/output/trap/tst2.js.trap

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
#10000=@"/invalid2/tst2.js;sourcefile"
2-
files(#10000,"/invalid2/tst2.js","tst2","js",0)
3-
#10001=@"/invalid2;folder"
4-
folders(#10001,"/invalid2","invalid2")
5-
#10002=@"/;folder"
6-
folders(#10002,"/","")
7-
containerparent(#10002,#10001)
1+
#10000=@"/tst2.js;sourcefile"
2+
files(#10000,"/tst2.js","tst2","js",0)
3+
#10001=@"/;folder"
4+
folders(#10001,"/","")
85
containerparent(#10001,#10000)
9-
#10003=@"loc,{#10000},0,0,0,0"
10-
locations_default(#10003,#10000,0,0,0,0)
11-
hasLocation(#10000,#10003)
6+
#10002=@"loc,{#10000},0,0,0,0"
7+
locations_default(#10002,#10000,0,0,0,0)
8+
hasLocation(#10000,#10002)
129
#20000=@"global_scope"
1310
scopes(#20000,0)
1411
#20001=@"script;{#10000},1,1"

0 commit comments

Comments
 (0)