Skip to content

Commit ddcd536

Browse files
Update test expectations with for_package #2693
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
1 parent 3f93f5e commit ddcd536

File tree

55 files changed

+684
-14
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+684
-14
lines changed

tests/formattedcode/data/json/simple-expected.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"--package": true
1212
},
1313
"notice": "Generated with ScanCode and provided on an \"AS IS\" BASIS, WITHOUT WARRANTIES\nOR CONDITIONS OF ANY KIND, either express or implied. No content created from\nScanCode should be considered or used as legal advice. Consult an Attorney\nfor any legal advice.\nScanCode is a free software code scanning tool from nexB Inc. and others.\nVisit https://github.com/nexB/scancode-toolkit/ for support and download.",
14-
"output_format_version": "1.0.0",
14+
"output_format_version": "2.0.0",
1515
"message": null,
1616
"errors": [],
1717
"extra_data": {
@@ -48,6 +48,7 @@
4848
"holders": [],
4949
"authors": [],
5050
"package_manifests": [],
51+
"for_packages": [],
5152
"files_count": 1,
5253
"dirs_count": 0,
5354
"size_count": 55,
@@ -91,6 +92,7 @@
9192
],
9293
"authors": [],
9394
"package_manifests": [],
95+
"for_packages": [],
9496
"files_count": 0,
9597
"dirs_count": 0,
9698
"size_count": 0,

tests/formattedcode/data/json/simple-expected.jsonpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"--package": true
1212
},
1313
"notice": "Generated with ScanCode and provided on an \"AS IS\" BASIS, WITHOUT WARRANTIES\nOR CONDITIONS OF ANY KIND, either express or implied. No content created from\nScanCode should be considered or used as legal advice. Consult an Attorney\nfor any legal advice.\nScanCode is a free software code scanning tool from nexB Inc. and others.\nVisit https://github.com/nexB/scancode-toolkit/ for support and download.",
14-
"output_format_version": "1.0.0",
14+
"output_format_version": "2.0.0",
1515
"message": null,
1616
"errors": [],
1717
"extra_data": {
@@ -48,6 +48,7 @@
4848
"holders": [],
4949
"authors": [],
5050
"package_manifests": [],
51+
"for_packages": [],
5152
"files_count": 1,
5253
"dirs_count": 0,
5354
"size_count": 55,
@@ -91,6 +92,7 @@
9192
],
9293
"authors": [],
9394
"package_manifests": [],
95+
"for_packages": [],
9496
"files_count": 0,
9597
"dirs_count": 0,
9698
"size_count": 0,

tests/formattedcode/data/json/tree/expected.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"--strip-root": true
1313
},
1414
"notice": "Generated with ScanCode and provided on an \"AS IS\" BASIS, WITHOUT WARRANTIES\nOR CONDITIONS OF ANY KIND, either express or implied. No content created from\nScanCode should be considered or used as legal advice. Consult an Attorney\nfor any legal advice.\nScanCode is a free software code scanning tool from nexB Inc. and others.\nVisit https://github.com/nexB/scancode-toolkit/ for support and download.",
15-
"output_format_version": "1.0.0",
15+
"output_format_version": "2.0.0",
1616
"message": null,
1717
"errors": [],
1818
"extra_data": {
@@ -61,6 +61,7 @@
6161
],
6262
"authors": [],
6363
"package_manifests": [],
64+
"for_packages": [],
6465
"files_count": 0,
6566
"dirs_count": 0,
6667
"size_count": 0,
@@ -104,6 +105,7 @@
104105
],
105106
"authors": [],
106107
"package_manifests": [],
108+
"for_packages": [],
107109
"files_count": 0,
108110
"dirs_count": 0,
109111
"size_count": 0,
@@ -147,6 +149,7 @@
147149
],
148150
"authors": [],
149151
"package_manifests": [],
152+
"for_packages": [],
150153
"files_count": 0,
151154
"dirs_count": 0,
152155
"size_count": 0,
@@ -178,6 +181,7 @@
178181
"holders": [],
179182
"authors": [],
180183
"package_manifests": [],
184+
"for_packages": [],
181185
"files_count": 4,
182186
"dirs_count": 0,
183187
"size_count": 361,
@@ -221,6 +225,7 @@
221225
],
222226
"authors": [],
223227
"package_manifests": [],
228+
"for_packages": [],
224229
"files_count": 0,
225230
"dirs_count": 0,
226231
"size_count": 0,
@@ -264,6 +269,7 @@
264269
],
265270
"authors": [],
266271
"package_manifests": [],
272+
"for_packages": [],
267273
"files_count": 0,
268274
"dirs_count": 0,
269275
"size_count": 0,
@@ -307,6 +313,7 @@
307313
],
308314
"authors": [],
309315
"package_manifests": [],
316+
"for_packages": [],
310317
"files_count": 0,
311318
"dirs_count": 0,
312319
"size_count": 0,
@@ -350,6 +357,7 @@
350357
],
351358
"authors": [],
352359
"package_manifests": [],
360+
"for_packages": [],
353361
"files_count": 0,
354362
"dirs_count": 0,
355363
"size_count": 0,

tests/formattedcode/data/yaml/simple-expected.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ headers:
1414
for any legal advice.
1515
ScanCode is a free software code scanning tool from nexB Inc. and others.
1616
Visit https://github.com/nexB/scancode-toolkit/ for support and download.
17-
output_format_version: 1.0.0
17+
output_format_version: 2.0.0
1818
message:
1919
errors: []
2020
extra_data:
@@ -47,6 +47,7 @@ files:
4747
holders: []
4848
authors: []
4949
package_manifests: []
50+
for_packages: []
5051
files_count: 1
5152
dirs_count: '0'
5253
size_count: 55
@@ -82,6 +83,7 @@ files:
8283
end_line: 1
8384
authors: []
8485
package_manifests: []
86+
for_packages: []
8587
files_count: '0'
8688
dirs_count: '0'
8789
size_count: '0'

tests/formattedcode/data/yaml/tree/expected.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ headers:
1515
for any legal advice.
1616
ScanCode is a free software code scanning tool from nexB Inc. and others.
1717
Visit https://github.com/nexB/scancode-toolkit/ for support and download.
18-
output_format_version: 1.0.0
18+
output_format_version: 2.0.0
1919
message:
2020
errors: []
2121
extra_data:
@@ -54,6 +54,7 @@ files:
5454
end_line: 1
5555
authors: []
5656
package_manifests: []
57+
for_packages: []
5758
files_count: '0'
5859
dirs_count: '0'
5960
size_count: '0'
@@ -89,6 +90,7 @@ files:
8990
end_line: 1
9091
authors: []
9192
package_manifests: []
93+
for_packages: []
9294
files_count: '0'
9395
dirs_count: '0'
9496
size_count: '0'
@@ -124,6 +126,7 @@ files:
124126
end_line: 1
125127
authors: []
126128
package_manifests: []
129+
for_packages: []
127130
files_count: '0'
128131
dirs_count: '0'
129132
size_count: '0'
@@ -153,6 +156,7 @@ files:
153156
holders: []
154157
authors: []
155158
package_manifests: []
159+
for_packages: []
156160
files_count: 4
157161
dirs_count: '0'
158162
size_count: 361
@@ -188,6 +192,7 @@ files:
188192
end_line: 1
189193
authors: []
190194
package_manifests: []
195+
for_packages: []
191196
files_count: '0'
192197
dirs_count: '0'
193198
size_count: '0'
@@ -223,6 +228,7 @@ files:
223228
end_line: 1
224229
authors: []
225230
package_manifests: []
231+
for_packages: []
226232
files_count: '0'
227233
dirs_count: '0'
228234
size_count: '0'
@@ -258,6 +264,7 @@ files:
258264
end_line: 1
259265
authors: []
260266
package_manifests: []
267+
for_packages: []
261268
files_count: '0'
262269
dirs_count: '0'
263270
size_count: '0'
@@ -293,6 +300,7 @@ files:
293300
end_line: 1
294301
authors: []
295302
package_manifests: []
303+
for_packages: []
296304
files_count: '0'
297305
dirs_count: '0'
298306
size_count: '0'

tests/licensedcode/data/plugin_license/package/package.expected.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@
219219
"api_data_url": "https://registry.npmjs.org/busboy/0.2.14"
220220
}
221221
],
222+
"for_packages": [
223+
"pkg:npm/busboy@0.2.14"
224+
],
222225
"scan_errors": []
223226
}
224227
]

tests/packagedcode/data/build/bazel/end2end-expected.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"path": "end2end",
2424
"type": "directory",
2525
"package_manifests": [],
26+
"for_packages": [],
2627
"scan_errors": []
2728
},
2829
{
@@ -66,36 +67,42 @@
6667
"api_data_url": null
6768
}
6869
],
70+
"for_packages": [],
6971
"scan_errors": []
7072
},
7173
{
7274
"path": "end2end/subdir",
7375
"type": "directory",
7476
"package_manifests": [],
77+
"for_packages": [],
7578
"scan_errors": []
7679
},
7780
{
7881
"path": "end2end/subdir/dir",
7982
"type": "directory",
8083
"package_manifests": [],
84+
"for_packages": [],
8185
"scan_errors": []
8286
},
8387
{
8488
"path": "end2end/subdir/dir/file1",
8589
"type": "file",
8690
"package_manifests": [],
91+
"for_packages": [],
8792
"scan_errors": []
8893
},
8994
{
9095
"path": "end2end/subdir/file1",
9196
"type": "file",
9297
"package_manifests": [],
98+
"for_packages": [],
9399
"scan_errors": []
94100
},
95101
{
96102
"path": "end2end/subdir2",
97103
"type": "directory",
98104
"package_manifests": [],
105+
"for_packages": [],
99106
"scan_errors": []
100107
},
101108
{
@@ -139,24 +146,28 @@
139146
"api_data_url": null
140147
}
141148
],
149+
"for_packages": [],
142150
"scan_errors": []
143151
},
144152
{
145153
"path": "end2end/subdir2/file2",
146154
"type": "file",
147155
"package_manifests": [],
156+
"for_packages": [],
148157
"scan_errors": []
149158
},
150159
{
151160
"path": "end2end/subdir2/subdir3",
152161
"type": "directory",
153162
"package_manifests": [],
163+
"for_packages": [],
154164
"scan_errors": []
155165
},
156166
{
157167
"path": "end2end/subdir2/subdir3/file2",
158168
"type": "file",
159169
"package_manifests": [],
170+
"for_packages": [],
160171
"scan_errors": []
161172
}
162173
]

tests/packagedcode/data/build/buck/end2end-expected.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"path": "end2end",
2424
"type": "directory",
2525
"package_manifests": [],
26+
"for_packages": [],
2627
"scan_errors": []
2728
},
2829
{
@@ -66,36 +67,42 @@
6667
"api_data_url": null
6768
}
6869
],
70+
"for_packages": [],
6971
"scan_errors": []
7072
},
7173
{
7274
"path": "end2end/subdir",
7375
"type": "directory",
7476
"package_manifests": [],
77+
"for_packages": [],
7578
"scan_errors": []
7679
},
7780
{
7881
"path": "end2end/subdir/dir",
7982
"type": "directory",
8083
"package_manifests": [],
84+
"for_packages": [],
8185
"scan_errors": []
8286
},
8387
{
8488
"path": "end2end/subdir/dir/file1",
8589
"type": "file",
8690
"package_manifests": [],
91+
"for_packages": [],
8792
"scan_errors": []
8893
},
8994
{
9095
"path": "end2end/subdir/file1",
9196
"type": "file",
9297
"package_manifests": [],
98+
"for_packages": [],
9399
"scan_errors": []
94100
},
95101
{
96102
"path": "end2end/subdir2",
97103
"type": "directory",
98104
"package_manifests": [],
105+
"for_packages": [],
99106
"scan_errors": []
100107
},
101108
{
@@ -141,30 +148,35 @@
141148
"api_data_url": null
142149
}
143150
],
151+
"for_packages": [],
144152
"scan_errors": []
145153
},
146154
{
147155
"path": "end2end/subdir2/LICENSE",
148156
"type": "file",
149157
"package_manifests": [],
158+
"for_packages": [],
150159
"scan_errors": []
151160
},
152161
{
153162
"path": "end2end/subdir2/file2",
154163
"type": "file",
155164
"package_manifests": [],
165+
"for_packages": [],
156166
"scan_errors": []
157167
},
158168
{
159169
"path": "end2end/subdir2/subdir3",
160170
"type": "directory",
161171
"package_manifests": [],
172+
"for_packages": [],
162173
"scan_errors": []
163174
},
164175
{
165176
"path": "end2end/subdir2/subdir3/file2",
166177
"type": "file",
167178
"package_manifests": [],
179+
"for_packages": [],
168180
"scan_errors": []
169181
}
170182
]

0 commit comments

Comments
 (0)