Skip to content

Commit 60b162e

Browse files
Modify test expectations for top level packages
Signed-off-by: Ayan Sinha <ayansmahapatra@gmail.com>
1 parent afcd205 commit 60b162e

64 files changed

Lines changed: 13793 additions & 33 deletions

File tree

Some content is hidden

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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +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",
1415
"message": null,
1516
"errors": [],
1617
"extra_data": {
@@ -19,6 +20,7 @@
1920
}
2021
}
2122
],
23+
"packages": [],
2224
"files": [
2325
{
2426
"path": "simple",

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +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",
1415
"message": null,
1516
"errors": [],
1617
"extra_data": {
@@ -19,6 +20,7 @@
1920
}
2021
}
2122
],
23+
"packages": [],
2224
"files": [
2325
{
2426
"path": "simple",

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +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",
1516
"message": null,
1617
"errors": [],
1718
"extra_data": {
@@ -20,6 +21,7 @@
2021
}
2122
}
2223
],
24+
"packages": [],
2325
"files": [
2426
{
2527
"path": "copy1.c",

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@ 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
1718
message:
1819
errors: []
1920
extra_data:
21+
spdx_license_list_version: '3.14'
2022
files_count: 1
23+
packages: []
2124
files:
2225
- path: simple
2326
type: directory

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ 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
1819
message:
1920
errors: []
2021
extra_data:
22+
spdx_license_list_version: '3.14'
2123
files_count: 7
24+
packages: []
2225
files:
2326
- path: copy1.c
2427
type: file

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"--package": true
1010
},
1111
"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.",
12+
"output_format_version": "1.0.0",
1213
"message": null,
1314
"errors": [],
1415
"extra_data": {
@@ -17,6 +18,7 @@
1718
}
1819
}
1920
],
21+
"packages": [],
2022
"files": [
2123
{
2224
"path": "package.json",

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

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"--package": true
99
},
1010
"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.",
11+
"output_format_version": "1.0.0",
1112
"message": null,
1213
"errors": [],
1314
"extra_data": {
@@ -16,6 +17,80 @@
1617
}
1718
}
1819
],
20+
"packages": [
21+
{
22+
"type": "bazel",
23+
"namespace": null,
24+
"name": "end2end",
25+
"version": null,
26+
"qualifiers": {},
27+
"subpath": null,
28+
"primary_language": null,
29+
"description": null,
30+
"release_date": null,
31+
"parties": [],
32+
"keywords": [],
33+
"homepage_url": null,
34+
"download_url": null,
35+
"size": null,
36+
"sha1": null,
37+
"md5": null,
38+
"sha256": null,
39+
"sha512": null,
40+
"bug_tracking_url": null,
41+
"code_view_url": null,
42+
"vcs_url": null,
43+
"copyright": null,
44+
"license_expression": null,
45+
"declared_license": null,
46+
"notice_text": null,
47+
"root_path": "end2end",
48+
"dependencies": [],
49+
"contains_source_code": null,
50+
"source_packages": [],
51+
"extra_data": {},
52+
"purl": "pkg:bazel/end2end",
53+
"repository_homepage_url": null,
54+
"repository_download_url": null,
55+
"api_data_url": null
56+
},
57+
{
58+
"type": "bazel",
59+
"namespace": null,
60+
"name": "subdir2",
61+
"version": null,
62+
"qualifiers": {},
63+
"subpath": null,
64+
"primary_language": null,
65+
"description": null,
66+
"release_date": null,
67+
"parties": [],
68+
"keywords": [],
69+
"homepage_url": null,
70+
"download_url": null,
71+
"size": null,
72+
"sha1": null,
73+
"md5": null,
74+
"sha256": null,
75+
"sha512": null,
76+
"bug_tracking_url": null,
77+
"code_view_url": null,
78+
"vcs_url": null,
79+
"copyright": null,
80+
"license_expression": null,
81+
"declared_license": null,
82+
"notice_text": null,
83+
"root_path": "end2end/subdir2",
84+
"dependencies": [],
85+
"contains_source_code": null,
86+
"source_packages": [],
87+
"extra_data": {},
88+
"purl": "pkg:bazel/subdir2",
89+
"repository_homepage_url": null,
90+
"repository_download_url": null,
91+
"api_data_url": null
92+
}
93+
],
1994
"files": [
2095
{
2196
"path": "end2end",

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

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"--package": true
99
},
1010
"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.",
11+
"output_format_version": "1.0.0",
1112
"message": null,
1213
"errors": [],
1314
"extra_data": {
@@ -16,6 +17,82 @@
1617
}
1718
}
1819
],
20+
"packages": [
21+
{
22+
"type": "buck",
23+
"namespace": null,
24+
"name": "end2end",
25+
"version": null,
26+
"qualifiers": {},
27+
"subpath": null,
28+
"primary_language": null,
29+
"description": null,
30+
"release_date": null,
31+
"parties": [],
32+
"keywords": [],
33+
"homepage_url": null,
34+
"download_url": null,
35+
"size": null,
36+
"sha1": null,
37+
"md5": null,
38+
"sha256": null,
39+
"sha512": null,
40+
"bug_tracking_url": null,
41+
"code_view_url": null,
42+
"vcs_url": null,
43+
"copyright": null,
44+
"license_expression": null,
45+
"declared_license": null,
46+
"notice_text": null,
47+
"root_path": "end2end",
48+
"dependencies": [],
49+
"contains_source_code": null,
50+
"source_packages": [],
51+
"extra_data": {},
52+
"purl": "pkg:buck/end2end",
53+
"repository_homepage_url": null,
54+
"repository_download_url": null,
55+
"api_data_url": null
56+
},
57+
{
58+
"type": "buck",
59+
"namespace": null,
60+
"name": "bin",
61+
"version": null,
62+
"qualifiers": {},
63+
"subpath": null,
64+
"primary_language": null,
65+
"description": null,
66+
"release_date": null,
67+
"parties": [],
68+
"keywords": [],
69+
"homepage_url": null,
70+
"download_url": null,
71+
"size": null,
72+
"sha1": null,
73+
"md5": null,
74+
"sha256": null,
75+
"sha512": null,
76+
"bug_tracking_url": null,
77+
"code_view_url": null,
78+
"vcs_url": null,
79+
"copyright": null,
80+
"license_expression": "apache-2.0",
81+
"declared_license": [
82+
"LICENSE"
83+
],
84+
"notice_text": null,
85+
"root_path": "end2end/subdir2",
86+
"dependencies": [],
87+
"contains_source_code": null,
88+
"source_packages": [],
89+
"extra_data": {},
90+
"purl": "pkg:buck/bin",
91+
"repository_homepage_url": null,
92+
"repository_download_url": null,
93+
"api_data_url": null
94+
}
95+
],
1996
"files": [
2097
{
2198
"path": "end2end",

tests/packagedcode/data/plugin/about-package-expected.json

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"--strip-root": true
1111
},
1212
"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.",
13+
"output_format_version": "1.0.0",
1314
"message": null,
1415
"errors": [],
1516
"extra_data": {
@@ -18,6 +19,100 @@
1819
}
1920
}
2021
],
22+
"packages": [
23+
{
24+
"type": "about",
25+
"namespace": null,
26+
"name": "apipkg",
27+
"version": "1.4",
28+
"qualifiers": {},
29+
"subpath": null,
30+
"primary_language": null,
31+
"description": null,
32+
"release_date": null,
33+
"parties": [
34+
{
35+
"type": "person",
36+
"role": "owner",
37+
"name": "Holger Krekel",
38+
"email": null,
39+
"url": null
40+
}
41+
],
42+
"keywords": [],
43+
"homepage_url": "https://bitbucket.org/hpk42/apipkg",
44+
"download_url": "https://pypi.python.org/packages/94/72/fd4f2e46ce7b0d388191c819ef691c8195fab09602bbf1a2f92aa5351444/apipkg-1.4-py2.py3-none-any.whl#md5=5644eb6aff3f19e13430251a820e987f",
45+
"size": null,
46+
"sha1": null,
47+
"md5": null,
48+
"sha256": null,
49+
"sha512": null,
50+
"bug_tracking_url": null,
51+
"code_view_url": null,
52+
"vcs_url": null,
53+
"copyright": "Copyright (c) 2009 holger krekel",
54+
"license_expression": "mit",
55+
"declared_license": "mit",
56+
"notice_text": null,
57+
"root_path": "apipkg.ABOUT",
58+
"dependencies": [],
59+
"contains_source_code": null,
60+
"source_packages": [],
61+
"extra_data": {
62+
"about_resource": "apipkg-1.4-py2.py3-none-any.whl"
63+
},
64+
"purl": "pkg:about/apipkg@1.4",
65+
"repository_homepage_url": null,
66+
"repository_download_url": null,
67+
"api_data_url": null
68+
},
69+
{
70+
"type": "about",
71+
"namespace": null,
72+
"name": "appdirs",
73+
"version": "1.4.3",
74+
"qualifiers": {},
75+
"subpath": null,
76+
"primary_language": null,
77+
"description": null,
78+
"release_date": null,
79+
"parties": [
80+
{
81+
"type": "person",
82+
"role": "owner",
83+
"name": "ActiveState",
84+
"email": null,
85+
"url": null
86+
}
87+
],
88+
"keywords": [],
89+
"homepage_url": "https://pypi.python.org/pypi/appdirs",
90+
"download_url": "https://pypi.python.org/packages/56/eb/810e700ed1349edde4cbdc1b2a21e28cdf115f9faf263f6bbf8447c1abf3/appdirs-1.4.3-py2.py3-none-any.whl#md5=9ed4b51c9611775c3078b3831072e153",
91+
"size": null,
92+
"sha1": null,
93+
"md5": null,
94+
"sha256": null,
95+
"sha512": null,
96+
"bug_tracking_url": null,
97+
"code_view_url": null,
98+
"vcs_url": null,
99+
"copyright": "Copyright (c) 2010 ActiveState Software Inc.",
100+
"license_expression": "mit",
101+
"declared_license": "mit",
102+
"notice_text": null,
103+
"root_path": "appdirs.ABOUT",
104+
"dependencies": [],
105+
"contains_source_code": null,
106+
"source_packages": [],
107+
"extra_data": {
108+
"about_resource": "appdirs-1.4.3-py2.py3-none-any.whl"
109+
},
110+
"purl": "pkg:about/appdirs@1.4.3",
111+
"repository_homepage_url": null,
112+
"repository_download_url": null,
113+
"api_data_url": null
114+
}
115+
],
21116
"files": [
22117
{
23118
"path": "apipkg.ABOUT",

0 commit comments

Comments
 (0)