Skip to content

Commit 44c8a97

Browse files
committed
JS: Update test output.
1 parent 1d884a3 commit 44c8a97

2 files changed

Lines changed: 143 additions & 123 deletions

File tree

javascript/extractor/tests/yaml/output/trap/emoji_buffer_boundary.yml.trap

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,26 @@ containerparent(#10001,#10000)
77
locations_default(#10002,#10000,0,0,0,0)
88
hasLocation(#10000,#10002)
99
#20000=*
10-
#20001=*
11-
yaml_scalars(#20001,0,"key")
12-
yaml(#20001,0,#20000,1,"tag:yaml.org,2002:str","key")
13-
#20002=@"loc,{#10000},2,1,2,3"
14-
locations_default(#20002,#10000,2,1,2,3)
15-
yaml_locations(#20001,#20002)
10+
yaml_comments(#20000," xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","# xxxxx ... xxxxxxx")
11+
#20001=@"loc,{#10000},1,1,1,1017"
12+
locations_default(#20001,#10000,1,1,1,1017)
13+
yaml_locations(#20000,#20001)
14+
#20002=*
1615
#20003=*
17-
yaml_scalars(#20003,0,"🚀")
18-
yaml(#20003,0,#20000,-1,"tag:yaml.org,2002:str","\u1f680\ude80")
19-
#20004=@"loc,{#10000},2,6,2,6"
20-
locations_default(#20004,#10000,2,6,2,6)
16+
yaml_scalars(#20003,0,"key")
17+
yaml(#20003,0,#20002,1,"tag:yaml.org,2002:str","key")
18+
#20004=@"loc,{#10000},2,1,2,3"
19+
locations_default(#20004,#10000,2,1,2,3)
2120
yaml_locations(#20003,#20004)
22-
yaml(#20000,1,#10000,0,"tag:yaml.org,2002:map","key: \u1f680\ude80")
23-
#20005=@"loc,{#10000},2,1,2,8"
24-
locations_default(#20005,#10000,2,1,2,8)
25-
yaml_locations(#20000,#20005)
21+
#20005=*
22+
yaml_scalars(#20005,0,"🚀")
23+
yaml(#20005,0,#20002,-1,"tag:yaml.org,2002:str","\u1f680\ude80")
24+
#20006=@"loc,{#10000},2,6,2,6"
25+
locations_default(#20006,#10000,2,6,2,6)
26+
yaml_locations(#20005,#20006)
27+
yaml(#20002,1,#10000,0,"tag:yaml.org,2002:map","key: \u1f680\ude80")
28+
#20007=@"loc,{#10000},2,1,2,8"
29+
locations_default(#20007,#10000,2,1,2,8)
30+
yaml_locations(#20002,#20007)
2631
numlines(#10000,2,0,0)
2732
filetype(#10000,"yaml")

javascript/extractor/tests/yaml/output/trap/orig.yml.trap

Lines changed: 124 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -87,130 +87,145 @@ yaml(#20028,0,#20017,-3,"tag:yaml.org,2002:str","xxxxxx")
8787
#20029=@"loc,{#10000},10,13,10,18"
8888
locations_default(#20029,#10000,10,13,10,18)
8989
yaml_locations(#20028,#20029)
90+
#20030=*
91+
yaml_comments(#20030," - xx: xxx","# - xx: xxx")
92+
#20031=@"loc,{#10000},11,1,11,14"
93+
locations_default(#20031,#10000,11,1,11,14)
94+
yaml_locations(#20030,#20031)
95+
#20032=*
96+
yaml_comments(#20032," xxx_xxxxx: xxxxxx.x","# ... xxxxx.x")
97+
#20033=@"loc,{#10000},12,1,12,26"
98+
locations_default(#20033,#10000,12,1,12,26)
99+
yaml_locations(#20032,#20033)
90100
yaml(#20017,1,#20016,0,"tag:yaml.org,2002:map","xx: xxxxx")
91-
#20030=@"loc,{#10000},8,7,12,27"
92-
locations_default(#20030,#10000,8,7,12,27)
93-
yaml_locations(#20017,#20030)
101+
#20034=@"loc,{#10000},8,7,12,27"
102+
locations_default(#20034,#10000,8,7,12,27)
103+
yaml_locations(#20017,#20034)
94104
yaml(#20016,2,#20013,-1,"tag:yaml.org,2002:seq","- xx: xxxxx")
95-
#20031=@"loc,{#10000},8,5,12,27"
96-
locations_default(#20031,#10000,8,5,12,27)
97-
yaml_locations(#20016,#20031)
105+
#20035=@"loc,{#10000},8,5,12,27"
106+
locations_default(#20035,#10000,8,5,12,27)
107+
yaml_locations(#20016,#20035)
98108
yaml(#20013,1,#20000,-3,"tag:yaml.org,2002:map","xxxxxxx:")
99-
#20032=@"loc,{#10000},7,3,12,27"
100-
locations_default(#20032,#10000,7,3,12,27)
101-
yaml_locations(#20013,#20032)
102-
#20033=*
103-
yaml_scalars(#20033,0,"xxxxx")
104-
yaml(#20033,0,#20000,4,"tag:yaml.org,2002:str","xxxxx")
105-
#20034=@"loc,{#10000},14,1,14,5"
106-
locations_default(#20034,#10000,14,1,14,5)
107-
yaml_locations(#20033,#20034)
108-
#20035=*
109-
#20036=*
110-
yaml_scalars(#20036,0,"xxxxxxxxxxx")
111-
yaml(#20036,0,#20035,1,"tag:yaml.org,2002:str","xxxxxxxxxxx")
112-
#20037=@"loc,{#10000},15,3,15,13"
113-
locations_default(#20037,#10000,15,3,15,13)
114-
yaml_locations(#20036,#20037)
115-
#20038=*
109+
#20036=@"loc,{#10000},7,3,12,27"
110+
locations_default(#20036,#10000,7,3,12,27)
111+
yaml_locations(#20013,#20036)
112+
#20037=*
113+
yaml_scalars(#20037,0,"xxxxx")
114+
yaml(#20037,0,#20000,4,"tag:yaml.org,2002:str","xxxxx")
115+
#20038=@"loc,{#10000},14,1,14,5"
116+
locations_default(#20038,#10000,14,1,14,5)
117+
yaml_locations(#20037,#20038)
116118
#20039=*
117-
yaml_scalars(#20039,0,"xxxx_xxxxxxx")
118-
yaml(#20039,0,#20038,0,"tag:yaml.org,2002:str","xxxx_xxxxxxx")
119-
#20040=@"loc,{#10000},16,7,16,18"
120-
locations_default(#20040,#10000,16,7,16,18)
121-
yaml_locations(#20039,#20040)
122-
yaml(#20038,2,#20035,-1,"tag:yaml.org,2002:seq","- xxxx_xxxxxxx")
123-
#20041=@"loc,{#10000},16,5,16,19"
124-
locations_default(#20041,#10000,16,5,16,19)
125-
yaml_locations(#20038,#20041)
126-
yaml(#20035,1,#20000,-4,"tag:yaml.org,2002:map","xxxxxxxxxxx:")
127-
#20042=@"loc,{#10000},15,3,16,19"
128-
locations_default(#20042,#10000,15,3,16,19)
129-
yaml_locations(#20035,#20042)
119+
#20040=*
120+
yaml_scalars(#20040,0,"xxxxxxxxxxx")
121+
yaml(#20040,0,#20039,1,"tag:yaml.org,2002:str","xxxxxxxxxxx")
122+
#20041=@"loc,{#10000},15,3,15,13"
123+
locations_default(#20041,#10000,15,3,15,13)
124+
yaml_locations(#20040,#20041)
125+
#20042=*
130126
#20043=*
131-
yaml_scalars(#20043,0,"xxxxxx")
132-
yaml(#20043,0,#20000,5,"tag:yaml.org,2002:str","xxxxxx")
133-
#20044=@"loc,{#10000},18,1,18,6"
134-
locations_default(#20044,#10000,18,1,18,6)
127+
yaml_scalars(#20043,0,"xxxx_xxxxxxx")
128+
yaml(#20043,0,#20042,0,"tag:yaml.org,2002:str","xxxx_xxxxxxx")
129+
#20044=@"loc,{#10000},16,7,16,18"
130+
locations_default(#20044,#10000,16,7,16,18)
135131
yaml_locations(#20043,#20044)
136-
#20045=*
137-
#20046=*
138-
yaml_scalars(#20046,0,"xxxx_xxxxxxx")
139-
yaml(#20046,0,#20045,1,"tag:yaml.org,2002:str","xxxx_xxxxxxx")
140-
#20047=@"loc,{#10000},19,3,19,14"
141-
locations_default(#20047,#10000,19,3,19,14)
142-
yaml_locations(#20046,#20047)
143-
#20048=*
144-
yaml_scalars(#20048,0,"xxxx")
145-
yaml(#20048,0,#20045,-1,"tag:yaml.org,2002:str","xxxx")
146-
#20049=@"loc,{#10000},19,17,19,20"
147-
locations_default(#20049,#10000,19,17,19,20)
148-
yaml_locations(#20048,#20049)
132+
yaml(#20042,2,#20039,-1,"tag:yaml.org,2002:seq","- xxxx_xxxxxxx")
133+
#20045=@"loc,{#10000},16,5,16,19"
134+
locations_default(#20045,#10000,16,5,16,19)
135+
yaml_locations(#20042,#20045)
136+
yaml(#20039,1,#20000,-4,"tag:yaml.org,2002:map","xxxxxxxxxxx:")
137+
#20046=@"loc,{#10000},15,3,16,19"
138+
locations_default(#20046,#10000,15,3,16,19)
139+
yaml_locations(#20039,#20046)
140+
#20047=*
141+
yaml_scalars(#20047,0,"xxxxxx")
142+
yaml(#20047,0,#20000,5,"tag:yaml.org,2002:str","xxxxxx")
143+
#20048=@"loc,{#10000},18,1,18,6"
144+
locations_default(#20048,#10000,18,1,18,6)
145+
yaml_locations(#20047,#20048)
146+
#20049=*
149147
#20050=*
150-
yaml_scalars(#20050,0,"xxxxxxxx")
151-
yaml(#20050,0,#20045,2,"tag:yaml.org,2002:str","xxxxxxxx")
152-
#20051=@"loc,{#10000},20,3,20,10"
153-
locations_default(#20051,#10000,20,3,20,10)
148+
yaml_scalars(#20050,0,"xxxx_xxxxxxx")
149+
yaml(#20050,0,#20049,1,"tag:yaml.org,2002:str","xxxx_xxxxxxx")
150+
#20051=@"loc,{#10000},19,3,19,14"
151+
locations_default(#20051,#10000,19,3,19,14)
154152
yaml_locations(#20050,#20051)
155153
#20052=*
156-
yaml_scalars(#20052,0,"xxxxxx")
157-
yaml(#20052,0,#20045,-2,"tag:yaml.org,2002:str","xxxxxx")
158-
#20053=@"loc,{#10000},20,13,20,18"
159-
locations_default(#20053,#10000,20,13,20,18)
154+
yaml_scalars(#20052,0,"xxxx")
155+
yaml(#20052,0,#20049,-1,"tag:yaml.org,2002:str","xxxx")
156+
#20053=@"loc,{#10000},19,17,19,20"
157+
locations_default(#20053,#10000,19,17,19,20)
160158
yaml_locations(#20052,#20053)
161159
#20054=*
162-
yaml_scalars(#20054,0,"xxxxxx")
163-
yaml(#20054,0,#20045,3,"tag:yaml.org,2002:str","xxxxxx")
164-
#20055=@"loc,{#10000},21,3,21,8"
165-
locations_default(#20055,#10000,21,3,21,8)
160+
yaml_scalars(#20054,0,"xxxxxxxx")
161+
yaml(#20054,0,#20049,2,"tag:yaml.org,2002:str","xxxxxxxx")
162+
#20055=@"loc,{#10000},20,3,20,10"
163+
locations_default(#20055,#10000,20,3,20,10)
166164
yaml_locations(#20054,#20055)
167165
#20056=*
168-
yaml_scalars(#20056,0,"xxx xxx xxxx")
169-
yaml(#20056,0,#20045,-3,"tag:yaml.org,2002:str","xxx xxx xxxx")
170-
#20057=@"loc,{#10000},21,11,21,22"
171-
locations_default(#20057,#10000,21,11,21,22)
166+
yaml_scalars(#20056,0,"xxxxxx")
167+
yaml(#20056,0,#20049,-2,"tag:yaml.org,2002:str","xxxxxx")
168+
#20057=@"loc,{#10000},20,13,20,18"
169+
locations_default(#20057,#10000,20,13,20,18)
172170
yaml_locations(#20056,#20057)
173-
yaml(#20045,1,#20000,-5,"tag:yaml.org,2002:map","xxxx_xxxxxxx: xxxx")
174-
#20058=@"loc,{#10000},19,3,21,23"
175-
locations_default(#20058,#10000,19,3,21,23)
176-
yaml_locations(#20045,#20058)
177-
#20059=*
178-
yaml_scalars(#20059,0,"xxx")
179-
yaml(#20059,0,#20000,6,"tag:yaml.org,2002:str","xxx")
180-
#20060=@"loc,{#10000},23,1,23,3"
181-
locations_default(#20060,#10000,23,1,23,3)
182-
yaml_locations(#20059,#20060)
183-
#20061=*
184-
#20062=*
185-
yaml_scalars(#20062,0,"xxxxxx")
186-
yaml(#20062,0,#20061,1,"tag:yaml.org,2002:str","xxxxxx")
187-
#20063=@"loc,{#10000},24,3,24,8"
188-
locations_default(#20063,#10000,24,3,24,8)
189-
yaml_locations(#20062,#20063)
190-
#20064=*
171+
#20058=*
172+
yaml_scalars(#20058,0,"xxxxxx")
173+
yaml(#20058,0,#20049,3,"tag:yaml.org,2002:str","xxxxxx")
174+
#20059=@"loc,{#10000},21,3,21,8"
175+
locations_default(#20059,#10000,21,3,21,8)
176+
yaml_locations(#20058,#20059)
177+
#20060=*
178+
yaml_scalars(#20060,0,"xxx xxx xxxx")
179+
yaml(#20060,0,#20049,-3,"tag:yaml.org,2002:str","xxx xxx xxxx")
180+
#20061=@"loc,{#10000},21,11,21,22"
181+
locations_default(#20061,#10000,21,11,21,22)
182+
yaml_locations(#20060,#20061)
183+
yaml(#20049,1,#20000,-5,"tag:yaml.org,2002:map","xxxx_xxxxxxx: xxxx")
184+
#20062=@"loc,{#10000},19,3,21,23"
185+
locations_default(#20062,#10000,19,3,21,23)
186+
yaml_locations(#20049,#20062)
187+
#20063=*
188+
yaml_scalars(#20063,0,"xxx")
189+
yaml(#20063,0,#20000,6,"tag:yaml.org,2002:str","xxx")
190+
#20064=@"loc,{#10000},23,1,23,3"
191+
locations_default(#20064,#10000,23,1,23,3)
192+
yaml_locations(#20063,#20064)
191193
#20065=*
192-
yaml_scalars(#20065,0,"xxxxxx")
193-
yaml(#20065,0,#20064,1,"tag:yaml.org,2002:str","xxxxxx")
194-
#20066=@"loc,{#10000},26,5,26,10"
195-
locations_default(#20066,#10000,26,5,26,10)
196-
yaml_locations(#20065,#20066)
197-
#20067=*
198-
yaml_scalars(#20067,0,"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxx/xxxxxx/xxxxxxxxxxxxxxxxxxx/xxxxxxxxxxx/xxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxx/xxxxxxxxxxxxxxx+xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx+xxxxxxxxxxxxx+xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx+xxxxxxxxxxxxxxxxxxxxxxxxxxxx+xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx+xxxxxxxxxxxxxxxxxxxxxx+xxxxxxxxxxxxxxx=")
199-
yaml(#20067,0,#20064,-1,"tag:yaml.org,2002:str","xxxxxxx ... xxxxxx=")
200-
#20068=@"loc,{#10000},26,13,26,696"
201-
locations_default(#20068,#10000,26,13,26,696)
202-
yaml_locations(#20067,#20068)
203-
yaml(#20064,1,#20061,-1,"tag:yaml.org,2002:map","xxxxxx: ... xxxxxx=")
204-
#20069=@"loc,{#10000},26,5,26,697"
205-
locations_default(#20069,#10000,26,5,26,697)
206-
yaml_locations(#20064,#20069)
207-
yaml(#20061,1,#20000,-6,"tag:yaml.org,2002:map","xxxxxx:")
208-
#20070=@"loc,{#10000},24,3,26,697"
209-
locations_default(#20070,#10000,24,3,26,697)
210-
yaml_locations(#20061,#20070)
194+
#20066=*
195+
yaml_scalars(#20066,0,"xxxxxx")
196+
yaml(#20066,0,#20065,1,"tag:yaml.org,2002:str","xxxxxx")
197+
#20067=@"loc,{#10000},24,3,24,8"
198+
locations_default(#20067,#10000,24,3,24,8)
199+
yaml_locations(#20066,#20067)
200+
#20068=*
201+
#20069=*
202+
yaml_comments(#20069," xx_xxxxx","# xx_xxxxx")
203+
#20070=@"loc,{#10000},25,5,25,14"
204+
locations_default(#20070,#10000,25,5,25,14)
205+
yaml_locations(#20069,#20070)
206+
#20071=*
207+
yaml_scalars(#20071,0,"xxxxxx")
208+
yaml(#20071,0,#20068,1,"tag:yaml.org,2002:str","xxxxxx")
209+
#20072=@"loc,{#10000},26,5,26,10"
210+
locations_default(#20072,#10000,26,5,26,10)
211+
yaml_locations(#20071,#20072)
212+
#20073=*
213+
yaml_scalars(#20073,0,"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxx/xxxxxx/xxxxxxxxxxxxxxxxxxx/xxxxxxxxxxx/xxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxx/xxxxxxxxxxxxxxx+xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx+xxxxxxxxxxxxx+xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx+xxxxxxxxxxxxxxxxxxxxxxxxxxxx+xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx+xxxxxxxxxxxxxxxxxxxxxx+xxxxxxxxxxxxxxx=")
214+
yaml(#20073,0,#20068,-1,"tag:yaml.org,2002:str","xxxxxxx ... xxxxxx=")
215+
#20074=@"loc,{#10000},26,13,26,696"
216+
locations_default(#20074,#10000,26,13,26,696)
217+
yaml_locations(#20073,#20074)
218+
yaml(#20068,1,#20065,-1,"tag:yaml.org,2002:map","xxxxxx: ... xxxxxx=")
219+
#20075=@"loc,{#10000},26,5,26,697"
220+
locations_default(#20075,#10000,26,5,26,697)
221+
yaml_locations(#20068,#20075)
222+
yaml(#20065,1,#20000,-6,"tag:yaml.org,2002:map","xxxxxx:")
223+
#20076=@"loc,{#10000},24,3,26,697"
224+
locations_default(#20076,#10000,24,3,26,697)
225+
yaml_locations(#20065,#20076)
211226
yaml(#20000,1,#10000,0,"tag:yaml.org,2002:map","xxxxxxxx: xxxx_xx")
212-
#20071=@"loc,{#10000},1,1,26,697"
213-
locations_default(#20071,#10000,1,1,26,697)
214-
yaml_locations(#20000,#20071)
227+
#20077=@"loc,{#10000},1,1,26,697"
228+
locations_default(#20077,#10000,1,1,26,697)
229+
yaml_locations(#20000,#20077)
215230
numlines(#10000,26,0,0)
216231
filetype(#10000,"yaml")

0 commit comments

Comments
 (0)